summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bundle.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-19 12:50:59 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-19 12:12:40 -0800
commit5dda7e5a484295f24ecfcba6b64da6d37dccb912 (patch)
tree26040d496fb56eb285b3939677d59995f89d02a5 /drivers/staging/greybus/bundle.c
parent5b0327103ff0f5498af008cb7189770c1a33b67b (diff)
downloadop-kernel-dev-5dda7e5a484295f24ecfcba6b64da6d37dccb912.zip
op-kernel-dev-5dda7e5a484295f24ecfcba6b64da6d37dccb912.tar.gz
greybus: legacy: add legacy-protocol bundle driver
Add the first Greybus bundle driver that will be used when transitioning from legacy Greybus protocols to bundle drivers. The legacy-protocol driver initially binds to all current bundle classes. In order to avoid having to update current module-loading scripts, keep this driver internal to greybus core at least until modalias support is added. Note that this prevents unloading any protocol drivers without first tearing down the host device due to a circular module dependency. 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>
Diffstat (limited to 'drivers/staging/greybus/bundle.c')
-rw-r--r--drivers/staging/greybus/bundle.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c
index fb775ff..ec52bde 100644
--- a/drivers/staging/greybus/bundle.c
+++ b/drivers/staging/greybus/bundle.c
@@ -152,21 +152,11 @@ int gb_bundle_add(struct gb_bundle *bundle)
return 0;
}
-static void gb_bundle_connections_exit(struct gb_bundle *bundle)
-{
- struct gb_connection *connection;
-
- list_for_each_entry(connection, &bundle->connections, bundle_links)
- gb_connection_exit(connection);
-}
-
/*
* Tear down a previously set up bundle.
*/
void gb_bundle_destroy(struct gb_bundle *bundle)
{
- gb_bundle_connections_exit(bundle);
-
if (device_is_registered(&bundle->dev))
device_del(&bundle->dev);
OpenPOWER on IntegriCloud