diff options
author | Sandeep Patil <sspatil@google.com> | 2016-05-04 16:21:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-04 18:41:05 -0700 |
commit | 3e29bcf4b148b8983dcb30faec0b59f681eabe9e (patch) | |
tree | 4af217e03cfad64cf6a1da6809694b49e7d4de5a /drivers/staging/greybus/core.c | |
parent | c81b1ec7853d083981b6edd1d7397d94b88dd597 (diff) |
greybus: core: add MODULE uevent var for all control devices
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>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r-- | drivers/staging/greybus/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 70a66e28471d..3fdc40597f16 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -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); |