diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-04-18 21:57:36 -0700 |
---|---|---|
committer | Greg KH <greg@press.kroah.org> | 2005-04-18 21:57:36 -0700 |
commit | e57cd73e2e844a3da25cc6b420674c81bbe1b387 (patch) | |
tree | e173c8c8cac2e0b01457a6e796887db1c141340b /drivers/base | |
parent | b41148c0d8d2fa0c36cebd9ba3ee4cfc0dc7cb9a (diff) | |
download | kernel-crypto-e57cd73e2e844a3da25cc6b420674c81bbe1b387.tar.gz kernel-crypto-e57cd73e2e844a3da25cc6b420674c81bbe1b387.tar.xz kernel-crypto-e57cd73e2e844a3da25cc6b420674c81bbe1b387.zip |
[PATCH] kobject/hotplug split - devices core
kobject_add() and kobject_del() don't emit hotplug events anymore. Do it
ourselves if we are finished populating the device directory.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 4e6cce8e6d3..a7cedd8cefe 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -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; @@ -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); |