summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/module.c
diff options
context:
space:
mode:
authorMatt Porter <mporter@linaro.org>2014-10-28 10:08:12 -0400
committerGreg Kroah-Hartman <greg@kroah.com>2014-10-29 07:47:56 +0800
commit53cbb00933a5181cf57ae799a6fc8cbecba973a4 (patch)
treed6fe36013ce144918b7d54e51eb7fe65bfec8419 /drivers/staging/greybus/module.c
parentf9ab34c2bf1ed120802ae64ae3f0c4ba6b46c6b3 (diff)
downloadlinux-53cbb00933a5181cf57ae799a6fc8cbecba973a4.tar.gz
linux-53cbb00933a5181cf57ae799a6fc8cbecba973a4.tar.bz2
linux-53cbb00933a5181cf57ae799a6fc8cbecba973a4.zip
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 <mporter@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/module.c')
-rw-r--r--drivers/staging/greybus/module.c1
1 files changed, 1 insertions, 0 deletions
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) {