LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: James Simmons <jsimmons@infradead.org>
To: Greg KH <greg@kroah.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: device_destroy
Date: Fri, 9 Feb 2007 14:51:12 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0702091450120.25221@pentafluge.infradead.org> (raw)
In-Reply-To: <20070209003934.GA30794@kroah.com>


> > While porting over a few class_devices I discovered a problem with 
> > device_destroy. It uses a dev_t which several classes don't use. 
> > Should all classes require a dev_t or should we just pass in the device
> > itself?
> 
> As you don't have a dev_t, then you have a handle to the 'struct device'
> itself, right?  Then just call device_unregister(), that's all that
> device_destroy() does after it finds the device in the list of devices
> associated with the class.
> 
> Does this help?

Okay. I needed to know if calling device_unregister directly was valid.
Thank you.


      reply	other threads:[~2007-02-09 14:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08 15:51 device_destroy James Simmons
2007-02-09  0:39 ` device_destroy Greg KH
2007-02-09 14:51   ` James Simmons [this message]

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=Pine.LNX.4.64.0702091450120.25221@pentafluge.infradead.org \
    --to=jsimmons@infradead.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: device_destroy' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).