Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1337
b: refs/heads/master
c: 187a1a9
h: refs/heads/master
i:
  1335: 648c034
v: v3
  • Loading branch information
Kay Sievers authored and Linus Torvalds committed May 23, 2005
1 parent bf605c7 commit 9ca663b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ab3fc403633c38aef5ef48844f8e5dbfee7c34f8
refs/heads/master: 187a1a94d629621d1471b42308e63573b1150773
4 changes: 2 additions & 2 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ int device_add(struct device *dev)

if ((error = kobject_add(&dev->kobj)))
goto Error;
kobject_hotplug(&dev->kobj, KOBJ_ADD);
if ((error = device_pm_add(dev)))
goto PMError;
if ((error = bus_add_device(dev)))
Expand All @@ -257,14 +258,13 @@ int device_add(struct device *dev)
/* notify platform of device entry */
if (platform_notify)
platform_notify(dev);

kobject_hotplug(&dev->kobj, KOBJ_ADD);
Done:
put_device(dev);
return error;
BusError:
device_pm_remove(dev);
PMError:
kobject_hotplug(&dev->kobj, KOBJ_REMOVE);
kobject_del(&dev->kobj);
Error:
if (parent)
Expand Down

0 comments on commit 9ca663b

Please sign in to comment.