[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tkrat.d01dbfd3bbd7140c@s5r6.in-berlin.de>
Date: Sun, 17 Jun 2007 11:01:18 +0200 (CEST)
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Greg Kroah-Hartman <gregkh@...e.de>
cc: linux-kernel@...r.kernel.org
Subject: [PATCH] driver core: properly get driver in device_release_driver
Signed-off-by: Stefan Richter <stefanr@...6.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/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists