Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59107
b: refs/heads/master
c: dc0afa8
h: refs/heads/master
i:
  59105: 279a726
  59103: e33a4e4
v: v3
  • Loading branch information
Cornelia Huck authored and Greg Kroah-Hartman committed Jul 11, 2007
1 parent 4e4db59 commit d15f285
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 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: 93160c6397e460bc4c7ac15323fb698f91ef02e5
refs/heads/master: dc0afa8388972a9ed7c2203cc46d8df1a4713f65
6 changes: 4 additions & 2 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ int bus_add_driver(struct device_driver *drv)
if (error)
goto out_put_bus;
drv->kobj.kset = &bus->drivers;
if ((error = kobject_register(&drv->kobj)))
error = kobject_register(&drv->kobj);
if (error)
goto out_put_bus;

if (drv->bus->drivers_autoprobe) {
Expand Down Expand Up @@ -772,7 +773,8 @@ static int bus_add_attrs(struct bus_type * bus)

if (bus->bus_attrs) {
for (i = 0; attr_name(bus->bus_attrs[i]); i++) {
if ((error = bus_create_file(bus,&bus->bus_attrs[i])))
error = bus_create_file(bus,&bus->bus_attrs[i]);
if (error)
goto Err;
}
}
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,11 +733,14 @@ int device_add(struct device *dev)
}
}

if ((error = device_add_attrs(dev)))
error = device_add_attrs(dev);
if (error)
goto AttrsError;
if ((error = device_pm_add(dev)))
error = device_pm_add(dev);
if (error)
goto PMError;
if ((error = bus_add_device(dev)))
error = bus_add_device(dev);
if (error)
goto BusError;
kobject_uevent(&dev->kobj, KOBJ_ADD);
bus_attach_device(dev);
Expand Down

0 comments on commit d15f285

Please sign in to comment.