aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/interface.c
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan@hovoldconsulting.com> 2016-01-19 12:50:59 +0100
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2016-01-19 12:12:40 -0800
commit5dda7e5a484295f24ecfcba6b64da6d37dccb912 (patch)
tree26040d496fb56eb285b3939677d59995f89d02a5 /drivers/staging/greybus/interface.c
parentgreybus: camera: Update configure stream based on new interface (diff)
downloadlinux-5dda7e5a484295f24ecfcba6b64da6d37dccb912.tar.gz
linux-5dda7e5a484295f24ecfcba6b64da6d37dccb912.tar.bz2
linux-5dda7e5a484295f24ecfcba6b64da6d37dccb912.zip
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/interface.c')
-rw-r--r--drivers/staging/greybus/interface.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c
index edac2383e492..c3453502ae22 100644
--- a/drivers/staging/greybus/interface.c
+++ b/drivers/staging/greybus/interface.c
@@ -183,7 +183,6 @@ void gb_interfaces_remove(struct gb_host_device *hd)
int gb_interface_init(struct gb_interface *intf, u8 device_id)
{
struct gb_bundle *bundle, *tmp;
- struct gb_connection *connection;
int ret, size;
void *manifest;
@@ -242,15 +241,6 @@ int gb_interface_init(struct gb_interface *intf, u8 device_id)
gb_bundle_destroy(bundle);
continue;
}
-
- list_for_each_entry(connection, &bundle->connections,
- bundle_links) {
- ret = gb_connection_init(connection);
- if (ret)
- break;
- }
- if (ret)
- gb_bundle_destroy(bundle);
}
ret = 0;