OSDN Git Service

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>
Wed, 29 Jul 2015 17:06:21 +0000 (10:06 -0700)
commite75b82bfc72533be25ce42241ca2d07b607ee705
tree21a45bd2cdec7a3e419cc516642f81d7deb7fbdd
parentca539a67c6a25e47233fdab67bdf1d4db00f883f
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