greybus: connection: destroy svc connection on connection exit or errors
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 7 Sep 2015 10:31:22 +0000 (16:01 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:19:46 +0000 (21:19 -0700)
commit1b7a9cd5a54536af5a97738097780369779c62d9
tree6da93f253b4bf558f1dc8f3304fad46073929bd6
parenta1163fae63079f01c24d9c062b1e22e5ada89f91
greybus: connection: destroy svc connection on connection exit or errors

While initializing a connection, the AP requests the SVC to create a
connection between a cport on AP and a cport on the Module.

The opposite of that is missing, when connection is destroyed or if
errors occur after creating the connection. Fix it.

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