greybus: connection: unbind protocol at exit
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 7 Dec 2015 14:05:33 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 8 Dec 2015 20:31:14 +0000 (15:31 -0500)
commit36173112354a4f5993d464f95b04d41e1eec10a0
treea58c52f6e049791cb7493083ca1ac15e2b26dc22
parent30c2de77aedeb0f576356fe152e1e22c4806d239
greybus: connection: unbind protocol at exit

Unbind protocol at connection exit rather than when the connection is
destroyed.

Now a protocol is only bound while a connection is enabled.

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