]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: core: add MODULE uevent var for all control devices
authorSandeep Patil <sspatil@google.com>
Wed, 4 May 2016 23:21:29 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 May 2016 01:41:05 +0000 (18:41 -0700)
The new ctrl device under interface is missing a MODULE uevent var,
add it.

Testing Done:
cat 'uevent' from ctrl device.
$ cat 1-3.3.ctrl/uevent
DEVTYPE=greybus_control
BUS=1
MODULE=3
INTERFACE=3
GREYBUS_ID=fffe0001/ffee0011

Signed-off-by: Sandeep Patil <sspatil@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c

index 70a66e28471db548dfed604ee2834726b29fd28e..3fdc40597f1648d4857d10be85b77e3c4411c793 100644 (file)
@@ -103,6 +103,7 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
        } else if (is_gb_control(dev)) {
                control = to_gb_control(dev);
                intf = control->intf;
+               module = intf->module;
                hd = intf->hd;
        } else if (is_gb_bundle(dev)) {
                bundle = to_gb_bundle(dev);