greybus: module: set device_id when initializing an interface
authorMatt Porter <mporter@linaro.org>
Tue, 28 Oct 2014 14:08:12 +0000 (10:08 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 28 Oct 2014 23:47:56 +0000 (07:47 +0800)
commit53cbb00933a5181cf57ae799a6fc8cbecba973a4
treed6fe36013ce144918b7d54e51eb7fe65bfec8419
parentf9ab34c2bf1ed120802ae64ae3f0c4ba6b46c6b3
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>
drivers/staging/greybus/module.c