]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: Cleanup connection leftovers
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 9 Jul 2015 05:26:30 +0000 (10:56 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 13 Jul 2015 22:40:37 +0000 (15:40 -0700)
commite99f305bb7cc3e22c508440d2a52e8c84c9b507a
treebb25c01bfb6d030f0c8194ee5844e82e8d1ae679
parente4340b13fd2cf9bcf1f0a40ae15de454ffdb74f8
greybus: Cleanup connection leftovers

This wouldn't happen normally, but in a buggy corner case it is possible
that all the connections aren't removed properly and they are still
present after the interfaces and endo are removed.

Warn in such a case and cleanup connections, so that /sys/bus/greybus/
can be removed while removing greybus modules.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/core.c