diff options
-rw-r--r-- | drivers/base/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 85042ada8a5b..159e0623a681 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c | |||
@@ -177,7 +177,7 @@ void device_release_driver(struct device * dev) | |||
177 | 177 | ||
178 | sysfs_remove_link(&drv->kobj, kobject_name(&dev->kobj)); | 178 | sysfs_remove_link(&drv->kobj, kobject_name(&dev->kobj)); |
179 | sysfs_remove_link(&dev->kobj, "driver"); | 179 | sysfs_remove_link(&dev->kobj, "driver"); |
180 | klist_remove(&dev->knode_driver); | 180 | klist_del(&dev->knode_driver); |
181 | 181 | ||
182 | down(&dev->sem); | 182 | down(&dev->sem); |
183 | if (drv->remove) | 183 | if (drv->remove) |