Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39877
b: refs/heads/master
c: 1bb6881
h: refs/heads/master
i:
  39875: 06e9b33
v: v3
  • Loading branch information
Cornelia Huck authored and Greg Kroah-Hartman committed Oct 18, 2006
1 parent 42933a0 commit 462edd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: f0e1761ac528e9d28f3ba06bd268ec41fe872ac8
refs/heads/master: 1bb6881acae1c4f11a6e86f04df32ba45e95031d
6 changes: 5 additions & 1 deletion trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,15 @@ int bus_register(struct bus_type * bus)

klist_init(&bus->klist_devices, klist_devices_get, klist_devices_put);
klist_init(&bus->klist_drivers, NULL, NULL);
bus_add_attrs(bus);
retval = bus_add_attrs(bus);
if (retval)
goto bus_attrs_fail;

pr_debug("bus type '%s' registered\n", bus->name);
return 0;

bus_attrs_fail:
kset_unregister(&bus->drivers);
bus_drivers_fail:
kset_unregister(&bus->devices);
bus_devices_fail:
Expand Down

0 comments on commit 462edd2

Please sign in to comment.