projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c58b8e4
)
driver core: fix device_add error path
author
Dmitriy Monakhov
<
[email protected]
>
Sun, 11 Mar 2007 12:36:19 +0000
(15:36 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 27 Apr 2007 17:57:27 +0000
(10:57 -0700)
- At the moment we jump here device was't added to
dev->class->devices list yet.
Signed-off-by: Monakhov Dmitriy <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/base/core.c
patch
|
blob
|
history
diff --git
a/drivers/base/core.c
b/drivers/base/core.c
index d7fcf823a42a71e08af9da4e62d83b0dae5129fd..db3a151be4a18fa4ab5b4e0a4591f7c811f96daa 100644
(file)
--- 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);