greybus: interface: register control device at hotplug
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 13 Apr 2016 17:19:03 +0000 (19:19 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 01:06:00 +0000 (10:06 +0900)
commit7326e07b588cace823a36d4a563838b051b8b8a5
tree160cc73241c47f319152cd19369a7282c9f673b4
parenta6e5b014b8fe0bd4cb1e1ca0380320a200605742
greybus: interface: register control device at hotplug

Make sure to register also the control device along with any bundles
when registering an interface.

Note that we currently ignore failures to register the control device
just as we do for bundle devices.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/control.c
drivers/staging/greybus/control.h
drivers/staging/greybus/interface.c