Commit 53cbb009 authored by Matt Porter's avatar Matt Porter Committed by Greg Kroah-Hartman

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: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent f9ab34c2
...@@ -153,6 +153,7 @@ gb_module_interface_init(struct gb_module *gmod, u8 interface_id, u8 device_id) ...@@ -153,6 +153,7 @@ gb_module_interface_init(struct gb_module *gmod, u8 interface_id, u8 device_id)
interface_id); interface_id);
return -ENOENT; return -ENOENT;
} }
interface->device_id = device_id;
ret = svc_set_route_send(interface, gmod->hd); ret = svc_set_route_send(interface, gmod->hd);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment