public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Robert Love <rml@novell.com>
Cc: Mr Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] hdaps driver update.
Date: Wed, 14 Sep 2005 10:38:47 -0700	[thread overview]
Message-ID: <20050914173847.GA24058@kroah.com> (raw)
In-Reply-To: <1126715517.5738.35.camel@molly>

On Wed, Sep 14, 2005 at 12:31:57PM -0400, Robert Love wrote:
> On Wed, 2005-09-14 at 09:16 -0700, Greg KH wrote:
> 
> > But you are reference counting a static object, right?  Which
> > isn't the nicest thing to have done.
> 
> I would not say it is not "the nicest thing", it is just not necessary
> to do the reference counting.  But we want the ref counting for other
> reasons, so it seems sensible.

Like was mentioned, please use platform_device_register_simple()
instead, that's what it is there for.

> > No, if you have that .owner field in your driver, you get a symlink in
> > sysfs that points from your driver to the module that controls it.  You
> > just removed that symlink, which is not what I think you wanted to have
> > happen :(
> 
> But device release == module unload.

Sure.

> I am not following, sadly.

Load the version of the driver in 2.6.14-rc1.  Look in the /sys/
directory for where your driver shows up.  You should see a symlink
called "module" in there that points back to /sys/module/ for where your
module lives.  That symlink was created by the fact that you had set the
.owner field in the struct device_driver.

Taking that field away like you did removes that symlink, which is not a
good thing.

thanks,

greg k-h

  parent reply	other threads:[~2005-09-14 17:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14 15:57 [patch] hdaps driver update Robert Love
2005-09-14 16:05 ` Greg KH
2005-09-14 16:09   ` Robert Love
2005-09-14 16:16     ` Greg KH
2005-09-14 16:31       ` Robert Love
2005-09-14 17:14         ` Dmitry Torokhov
2005-09-14 17:55           ` Robert Love
2005-09-14 17:38         ` Greg KH [this message]
2005-09-14 17:28       ` Dmitry Torokhov
2005-09-14 17:39         ` Greg KH
2005-09-14 18:19 ` [patch] hdaps driver update, updated Robert Love

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=20050914173847.GA24058@kroah.com \
    --to=greg@kroah.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@novell.com \
    /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