greybus: connection: clean up operation cancellation on disable
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:04 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:12:40 +0000 (12:12 -0800)
commit520c6eae991299720bcc0668326fb1e3a4bba3ba
tree3db527d6c23954614f3daae57d05b6617e1ad448
parent81fba24969c0ca427a8cd3d31bea10749f15b737
greybus: connection: clean up operation cancellation on disable

Move helper to cancel active operations above gb_connection_enable and
simplify locking.

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/connection.c