greybus: legacy: use protocol pointer to determine state
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:17 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
commit01547770e6fc283ce74944415fc069d287de082a
tree4c423afa6309ceb6022bfc8658c925c61d0c1638
parent50dfb87865790bf8ef86a1c6898cde4e0df212fd
greybus: legacy: use protocol pointer to determine state

Use the protocol pointer to determine the legacy connection state.

This is needed to allow core disable connections when an interface has
been hot-unplugged without the legacy protocols leaking its resources.

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