Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2843
b: refs/heads/master
c: d377e85
h: refs/heads/master
i:
  2841: 65aa521
  2839: 1d36b71
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jun 23, 2005
1 parent 1b87192 commit f60936f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 479f6ea85e513551510ad52f37e69e1c596ad356
refs/heads/master: d377e85b537a5e166272f937da6ba84350676b6e
5 changes: 2 additions & 3 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,9 @@ int bus_add_device(struct device * dev)

if (bus) {
pr_debug("bus %s: add device %s\n", bus->name, dev->bus_id);
error = device_attach(dev);
device_attach(dev);
klist_add_tail(&bus->klist_devices, &dev->knode_bus);
if (error >= 0)
error = device_add_attrs(bus, dev);
error = device_add_attrs(bus, dev);
if (!error) {
sysfs_create_link(&bus->devices.kobj, &dev->kobj, dev->bus_id);
sysfs_create_link(&dev->kobj, &dev->bus->subsys.kset.kobj, "bus");
Expand Down

0 comments on commit f60936f

Please sign in to comment.