]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: svc: refactor interface-route destruction
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 9 Mar 2016 11:20:35 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 21:57:42 +0000 (13:57 -0800)
commit39495a2bea4d523c4d36f28f3739caa8d3a404c4
treed6ff35a73c673324de7b89d81ac75c6afce0bef8
parentbb2533a9742f19bfe6b87b64d54e846674e467d1
greybus: svc: refactor interface-route destruction

Add interface-route-destroy helper to tear down the route and release
the interface device id.

Note that we currently need to grab a reference to the interface to
prevent it from being deallocated before tearing down the route.

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