mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] driver core: properly get driver in device_release_driver
@ 2007-06-17  9:01 Stefan Richter
  2007-06-17  9:02 ` [PATCH] driver core: fix kernel doc of device_release_driver Stefan Richter
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Richter @ 2007-06-17  9:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
 drivers/base/dd.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6.22-rc3/drivers/base/dd.c
===================================================================
--- linux-2.6.22-rc3.orig/drivers/base/dd.c
+++ linux-2.6.22-rc3/drivers/base/dd.c
@@ -309,9 +309,8 @@ static void __device_release_driver(stru
 {
 	struct device_driver * drv;
 
-	drv = dev->driver;
+	drv = get_driver(dev->driver);
 	if (drv) {
-		get_driver(drv);
 		driver_sysfs_remove(dev);
 		sysfs_remove_link(&dev->kobj, "driver");
 		klist_remove(&dev->knode_driver);

-- 
Stefan Richter
-=====-=-=== -==- =---=
http://arcgraph.de/sr/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-17  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-17  9:01 [PATCH] driver core: properly get driver in device_release_driver Stefan Richter
2007-06-17  9:02 ` [PATCH] driver core: fix kernel doc of device_release_driver Stefan Richter

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®