Driver core: allow to delay the uevent at device creation time
For the block subsystem, we want to delay all uevents until the disk has been scanned and allpartitons are already created before the first event is sent out. Signed-off-by: Kay Sievers <kay.sievers@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
f9f852df2f
commit
b7a3e813fb
@@ -589,7 +589,8 @@ int device_add(struct device *dev)
|
||||
goto PMError;
|
||||
if ((error = bus_add_device(dev)))
|
||||
goto BusError;
|
||||
kobject_uevent(&dev->kobj, KOBJ_ADD);
|
||||
if (!dev->uevent_suppress)
|
||||
kobject_uevent(&dev->kobj, KOBJ_ADD);
|
||||
if ((error = bus_attach_device(dev)))
|
||||
goto AttachError;
|
||||
if (parent)
|
||||
|
Reference in New Issue
Block a user