* [PATCH 2/6] kobject/hotplug split - class core
@ 2005-03-18 4:00 Kay Sievers
0 siblings, 0 replies; only message in thread
From: Kay Sievers @ 2005-03-18 4:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg KH
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>
===== drivers/base/class.c 1.61 vs edited =====
--- 1.61/drivers/base/class.c 2005-03-15 17:52:00 +01:00
+++ edited/drivers/base/class.c 2005-03-18 02:17:17 +01:00
@@ -491,6 +491,7 @@ int class_device_add(struct class_device
up(&parent->sem);
}
+ kobject_hotplug(&class_dev->kobj, KOBJ_ADD);
register_done:
if (error && parent)
class_put(parent);
@@ -562,6 +563,7 @@ void class_device_del(struct class_devic
}
class_device_remove_attrs(class_dev);
+ kobject_hotplug(&class_dev->kobj, KOBJ_REMOVE);
kobject_del(&class_dev->kobj);
if (parent)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-18 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 4:00 [PATCH 2/6] kobject/hotplug split - class core Kay Sievers
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.