mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 15:13:44 -04:00
greybus: core: add bundle id to bundle uevents
Add the bundle id to bundle uevents. This is needed to identify bundles that are being removed (e.g. at hot-unplug). Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c5e6b05ce4
commit
c29c016f7e
@@ -112,7 +112,9 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||
// add a uevent that can "load" a bundle type
|
||||
// This is what we need to bind a driver to so use the info
|
||||
// in gmod here as well
|
||||
return 0;
|
||||
|
||||
if (add_uevent_var(env, "BUNDLE=%u", bundle->id))
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user