Skip to contentSkip to conversation

driver core:fix duplicate removing driver link in __device_release_driver

PATCH New [email protected] 1 participant 1 message Dec 17, 2008 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver core:fix duplicate removing driver link in __device_release_driver

From: Ming Lei <[email protected]>

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().

---
 drivers/base/dd.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/base/dd.c +0 -1
index 20febc0..2a0b8cc 100644
@@ -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,
Signature · 1 line
1.6.0