Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314
b: refs/heads/master
c: e57cd73
h: refs/heads/master
v: v3
  • Loading branch information
kay.sievers@vrfy.org authored and Greg KH committed Apr 19, 2005
1 parent 486bdff commit fd75332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b41148c0d8d2fa0c36cebd9ba3ee4cfc0dc7cb9a
refs/heads/master: e57cd73e2e844a3da25cc6b420674c81bbe1b387
3 changes: 3 additions & 0 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ 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;
Expand Down Expand Up @@ -349,6 +351,7 @@ void device_del(struct device * dev)
platform_notify_remove(dev);
bus_remove_device(dev);
device_pm_remove(dev);
kobject_hotplug(&dev->kobj, KOBJ_REMOVE);
kobject_del(&dev->kobj);
if (parent)
put_device(parent);
Expand Down

0 comments on commit fd75332

Please sign in to comment.