From: Stefan Richter Date: Sun, 17 Jun 2007 09:01:18 +0000 (+0200) Subject: driver core: properly get driver in device_release_driver X-Git-Tag: v2.6.23-rc1~1107^2~50 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1f5681aae8feadd113644c9e077152416c12b75c;p=linux-2.6-omap-h63xx.git driver core: properly get driver in device_release_driver Signed-off-by: Stefan Richter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/dd.c b/drivers/base/dd.c index b0088b0efec..3c503e1f69a 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -296,9 +296,8 @@ static void __device_release_driver(struct device * dev) { 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);