From: Greg KH <greg@kroah.com>
To: James Simmons <jsimmons@infradead.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: device_destroy
Date: Thu, 8 Feb 2007 16:39:34 -0800 [thread overview]
Message-ID: <20070209003934.GA30794@kroah.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0702081548450.7686@pentafluge.infradead.org>
On Thu, Feb 08, 2007 at 03:51:08PM +0000, James Simmons wrote:
>
> 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?
thanks,
greg k-h
next prev parent reply other threads:[~2007-02-09 0:40 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 ` Greg KH [this message]
2007-02-09 14:51 ` device_destroy James Simmons
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=20070209003934.GA30794@kroah.com \
--to=greg@kroah.com \
--cc=jsimmons@infradead.org \
--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
Powered by JetHome