greybus: interface: disable control connection on initialisation errors
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 9 Mar 2016 11:20:39 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 21:57:42 +0000 (13:57 -0800)
commit11548c8327000302cfaaf7bcac02a3ccf14c2db1
tree5d7f559c6b8583d66e6c7a4cec26ea2473bb8168
parent986d6911083150a15b723b33f9aaaf5744b84a84
greybus: interface: disable control connection on initialisation errors

Disable the control connection immediately on any errors during
interface initialisation as there's no need to keep it around for an
interface in an error state.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c