Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7a3e813 authored by Kay Sievers's avatar Kay Sievers Committed by Greg Kroah-Hartman
Browse files

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: default avatarKay Sievers <kay.sievers@novell.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f9f852df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -589,6 +589,7 @@ int device_add(struct device *dev)
		goto PMError;
	if ((error = bus_add_device(dev)))
		goto BusError;
	if (!dev->uevent_suppress)
		kobject_uevent(&dev->kobj, KOBJ_ADD);
	if ((error = bus_attach_device(dev)))
		goto AttachError;
+2 −1
Original line number Diff line number Diff line
@@ -399,9 +399,10 @@ struct device {

	/* class_device migration path */
	struct list_head	node;
	struct class		*class;		/* optional*/
	struct class		*class;
	dev_t			devt;		/* dev_t, creates the sysfs "dev" */
	struct attribute_group	**groups;	/* optional groups */
	int			uevent_suppress;

	void	(*release)(struct device * dev);
};