greybus: initialize svc connection while creating hd
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 Jul 2015 01:58:42 +0000 (07:28 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 28 Jul 2015 21:47:03 +0000 (14:47 -0700)
commit9612f2bcd466364a244b8c2a012de69abd8fb258
treef2e09c190bde9011e70879e12d78664edb317ed6
parentfe166c6a2b9225d71b1b4f1035603e189f6c3640
greybus: initialize svc connection while creating hd

Its really part of initializing the host device and is required for
every 'hd' that is created. Lets move the call to do basic
initialization of svc connection to greybus_create_hd().

Also add a comment to specify why we need to do it that early.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c
drivers/staging/greybus/es1.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/svc.c