greybus: add bundle class to the bundle uevent
authorGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 02:13:41 +0000 (18:13 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:43:04 +0000 (22:43 -0800)
commit6ce4cc278deca9849bd54783294be7edbe24bac0
treeb577249f645758280e1a8ef0604cd7241dc8c765
parent55ec09e898adb43cf69ebd8839e3d5656a0e7345
greybus: add bundle class to the bundle uevent

When bundles are added and then removed, we have a race where we go to
read the sysfs file, but it is now for a different bundle than the
uevent was originally for.  So add the bundle class to the uevent so we
"know" what the correct bundle class was.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c