From: Amici Alessandro <alessandro_amici@telespazio.it>
To: mochel@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: device model update 2/2
Date: Thu, 6 Jun 2002 10:56:30 +0200 [thread overview]
Message-ID: <A183DF60AC72D5119B990002A5749CB301E9C106@ROMADG-MAIL01> (raw)
hi,
+ lock_device(dev);
+ dev->driver = NULL;
+ unlock_device(dev);
+
+ /* detach from driver */
+ if (dev->driver->remove)
+ dev->driver->remove(dev);
+ put_driver(dev->driver);
you might want to exchange these two blocks :)
regards,
alessandro
next reply other threads:[~2002-06-06 8:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-06 8:56 Amici Alessandro [this message]
2002-06-06 15:14 ` Patrick Mochel
2002-06-06 16:45 ` Linus Torvalds
2002-06-06 16:56 ` Patrick Mochel
-- strict thread matches above, loose matches on Subject: below --
2002-06-05 23:20 Patrick Mochel
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=A183DF60AC72D5119B990002A5749CB301E9C106@ROMADG-MAIL01 \
--to=alessandro_amici@telespazio.it \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.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
all inboxes | Powered by JetHome®