* [PATCH] driver core:fix duplicate removing driver link in __device_release_driver
@ 2008-12-17 15:15 tom.leiming
0 siblings, 0 replies; only message in thread
From: tom.leiming @ 2008-12-17 15:15 UTC (permalink / raw)
To: kay.sievers, greg; +Cc: linux-kernel, Ming Lei
From: Ming Lei <tom.leiming@gmail.com>
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>
---
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 20febc0..2a0b8cc 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -298,7 +298,6 @@ static void __device_release_driver(struct device *dev)
drv = dev->driver;
if (drv) {
driver_sysfs_remove(dev);
- sysfs_remove_link(&dev->kobj, "driver");
if (dev->bus)
blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
--
1.6.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-17 15:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-17 15:15 [PATCH] driver core:fix duplicate removing driver link in __device_release_driver tom.leiming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®