[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>


authored by kay.sievers@vrfy.org and committed by Greg KH e57cd73e b41148c0

+3
+3
drivers/base/core.c
··· 260 260 /* notify platform of device entry */ 261 261 if (platform_notify) 262 262 platform_notify(dev); 263 + 264 + kobject_hotplug(&dev->kobj, KOBJ_ADD); 263 265 Done: 264 266 put_device(dev); 265 267 return error; ··· 351 349 platform_notify_remove(dev); 352 350 bus_remove_device(dev); 353 351 device_pm_remove(dev); 352 + kobject_hotplug(&dev->kobj, KOBJ_REMOVE); 354 353 kobject_del(&dev->kobj); 355 354 if (parent) 356 355 put_device(parent);