aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@novell.com>2006-10-07 15:54:55 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-02-07 13:37:14 -0500
commitb7a3e813fb84624166f034e25234f98de5846bfc (patch)
tree5936d2755e6f4fcdbf3a34c743a7840cdc72b9a2 /drivers
parentf9f852df2faf76a2667949ddb4947d4b8f99f02f (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 34ac18778d8a..e13614241c9e 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -589,7 +589,8 @@ int device_add(struct device *dev)
589 goto PMError; 589 goto PMError;
590 if ((error = bus_add_device(dev))) 590 if ((error = bus_add_device(dev)))
591 goto BusError; 591 goto BusError;
592 kobject_uevent(&dev->kobj, KOBJ_ADD); 592 if (!dev->uevent_suppress)
593 kobject_uevent(&dev->kobj, KOBJ_ADD);
593 if ((error = bus_attach_device(dev))) 594 if ((error = bus_attach_device(dev)))
594 goto AttachError; 595 goto AttachError;
595 if (parent) 596 if (parent)