summaryrefslogtreecommitdiff
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-06-17 13:01:18 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 03:09:01 +0400
commit1f5681aae8feadd113644c9e077152416c12b75c (patch)
treed813eeece4c101ce53b2bcb53078fbbe87fa4583 /drivers/base/dd.c
parentf8916c11a4dc4cb2367e9bee1788f4e0f1b4eabc (diff)
downloadlinux-1f5681aae8feadd113644c9e077152416c12b75c.tar.xz
driver core: properly get driver in device_release_driver
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r--drivers/base/dd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index b0088b0efecd..3c503e1f69a2 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);