tree e173c8c8cac2e0b01457a6e796887db1c141340b
parent b41148c0d8d2fa0c36cebd9ba3ee4cfc0dc7cb9a
author [EMAIL PROTECTED] <[EMAIL PROTECTED]> Tue, 19 Apr 2005 11:57:36 -0700
committer Greg KH <[EMAIL PROTECTED]> Tue, 19 Apr 2005 11:57:36 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
base/core.c | 3 +++
1 files changed, 3 insertions(+)
Index: drivers/base/core.c
===================================================================
--- 95b16a5913b8940fac3996b5e15aff9a2f55a225/drivers/base/core.c (mode:100644
sha1:4e6cce8e6d3512a9344d7142fa05879861bf724e)
+++ e173c8c8cac2e0b01457a6e796887db1c141340b/drivers/base/core.c (mode:100644
sha1:a7cedd8cefe5385a8d2eb6f334c8661454c443d7)
@@ -260,6 +260,8 @@
/* 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 @@
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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html