summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/core.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-12-04 10:44:24 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-12-04 15:37:59 -0800
commitc29c016f7e41404aa7288aad8088162cac291594 (patch)
tree785feccf59ac29e959e470dc53c24f70f0a8fec0 /drivers/staging/greybus/core.c
parentc5e6b05ce4a18e7d6b73be0579c0698c8cc31b6c (diff)
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>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r--drivers/staging/greybus/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index 4ec7988eea26..209e1cd62838 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -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;