summaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorDmitriy Monakhov <dmonakhov@sw.ru>2007-03-11 15:36:19 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 10:57:27 -0700
commit00ed8e3dda47f8421b11da17e353d7db8c878121 (patch)
tree61aed6bee2b8f791d0bce8713a3b9132ad4badb4 /drivers/base/core.c
parentc58b8e4a25a1ba347a0e5d21984c97bd296f1691 (diff)
downloadblackbird-op-linux-00ed8e3dda47f8421b11da17e353d7db8c878121.tar.gz
blackbird-op-linux-00ed8e3dda47f8421b11da17e353d7db8c878121.zip
driver core: fix device_add error path
- At the moment we jump here device was't added to dev->class->devices list yet. Signed-off-by: Monakhov Dmitriy <dmonakhov@openvz.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index d7fcf823a42a..db3a151be4a1 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -677,15 +677,6 @@ int device_add(struct device *dev)
#endif
sysfs_remove_link(&dev->kobj, "device");
}
-
- down(&dev->class->sem);
- /* notify any interfaces that the device is now gone */
- list_for_each_entry(class_intf, &dev->class->interfaces, node)
- if (class_intf->remove_dev)
- class_intf->remove_dev(dev, class_intf);
- /* remove the device from the class list */
- list_del_init(&dev->node);
- up(&dev->class->sem);
}
ueventattrError:
device_remove_file(dev, &dev->uevent_attr);
OpenPOWER on IntegriCloud