greybus: svc: destroy the route on module hot-unplug
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 7 Sep 2015 12:35:26 +0000 (18:05 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:19:46 +0000 (21:19 -0700)
commit0a020570ed2f7817998870a9451526ffe492c44a
tree2e7a3f9e2c4db54427d041109ea7c345a8e0e551
parentbb10685246b4a4885e569306eca0bb64ded1b4f0
greybus: svc: destroy the route on module hot-unplug

We created two-way routes between the AP and module's interface on
hotplug, and forgot to remove them on hot-unplug. The same is also
required while handling errors in hotplug case.

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/greybus_protocols.h
drivers/staging/greybus/svc.c