From: Matt Porter Date: Tue, 28 Oct 2014 14:08:12 +0000 (-0400) Subject: greybus: module: set device_id when initializing an interface X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1949 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=53cbb00933a5181cf57ae799a6fc8cbecba973a4;p=users%2Fjedix%2Flinux-maple.git greybus: module: set device_id when initializing an interface gb_module_interface_init() looks for the interface corresponding to the supplied interface_id, but fails to configure the device_id that goes with it. This results in a set route command being set with an uninitialized and bogus value. Fix it. Signed-off-by: Matt Porter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c index f65aea680be7..4c6e084177d2 100644 --- a/drivers/staging/greybus/module.c +++ b/drivers/staging/greybus/module.c @@ -153,6 +153,7 @@ gb_module_interface_init(struct gb_module *gmod, u8 interface_id, u8 device_id) interface_id); return -ENOENT; } + interface->device_id = device_id; ret = svc_set_route_send(interface, gmod->hd); if (ret) {