diff options
author | Ming Lei <tom.leiming@gmail.com> | 2008-12-17 10:15:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:33 -0500 |
commit | 7232800ba8aca1c070d43a81cc49991f230b5da1 (patch) | |
tree | 131859d01c113a4ca2fe116b935c4cf351413d82 | |
parent | ec0676ee28528dc8dda13a93ee4b1f215a0c2f9d (diff) |
driver core:fix duplicate removing driver link in __device_release_driver
In __device_release_driver(),driver_sysfs_remove() has removed the
driver link under device dir in sysfs, but sysfs_remove_link() is
called again to do such thing. Remove the duplicate call to
sys_remove_link().
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/base/dd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index bb5f1eb83c03..6fdaf76f033f 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c | |||
@@ -298,7 +298,6 @@ static void __device_release_driver(struct device *dev) | |||
298 | drv = dev->driver; | 298 | drv = dev->driver; |
299 | if (drv) { | 299 | if (drv) { |
300 | driver_sysfs_remove(dev); | 300 | driver_sysfs_remove(dev); |
301 | sysfs_remove_link(&dev->kobj, "driver"); | ||
302 | 301 | ||
303 | if (dev->bus) | 302 | if (dev->bus) |
304 | blocking_notifier_call_chain(&dev->bus->p->bus_notifier, | 303 | blocking_notifier_call_chain(&dev->bus->p->bus_notifier, |