greybus: connection: fix connection initialisation
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 22 Jul 2015 15:49:19 +0000 (17:49 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 22 Jul 2015 18:13:03 +0000 (11:13 -0700)
commit4e2b1e46abf4eef013ab7297a215e21d3c22004e
tree1017242660589e4928a9ec3b22d9580dcfa2ed69
parenta4e08469ebd913e8145b8ab3ad0b40cfdd451240
greybus: connection: fix connection initialisation

Make sure connection is fully initialised before registering the
connection device and adding it to the host-device and bundle lists.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c