public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: Jaya Kumar <jayakumar.lkml@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: Clarifying platform_device_unregister
Date: Sat, 05 Apr 2008 13:07:33 +0100	[thread overview]
Message-ID: <1207397253.5021.23.camel@dax.rpnet.com> (raw)
In-Reply-To: <45a44e480804011857v39e00f3ck53803cd43c34c7b0@mail.gmail.com>

On Tue, 2008-04-01 at 21:57 -0400, Jaya Kumar wrote:
> I also have a followup. Does corgi/spitz_pm need to manage the module
> refcount of sharpsl-pm? I couldn't find any platform device code that
> manages the refcount of the platform driver that it binds them to. So
> I suspect this means that platform devices must do the try_module_get
> stuff themselves. Out of curiosity, what's the reason for not doing
> this inside the base/platform.c code?

I don't think any refcount is needed since corgi/spitz_pm refer to
functions in sharpsl-pm and therefore sharpsl-pm will always be around
as long as corgi/spitz_pm is.

Regards,

Richard


  reply	other threads:[~2008-04-05 12:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01  1:14 Clarifying platform_device_unregister Jaya Kumar
2008-04-01  5:19 ` Dmitry Torokhov
2008-04-01  7:47   ` Jaya Kumar
2008-04-01 14:54     ` Dmitry Torokhov
2008-04-02  1:57       ` Jaya Kumar
2008-04-05 12:07         ` Richard Purdie [this message]
2008-04-05 11:44       ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1207397253.5021.23.camel@dax.rpnet.com \
    --to=rpurdie@rpsys.net \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jayakumar.lkml@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox