]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/greybus/interface.c
greybus: legacy: add legacy-protocol bundle driver
[karo-tx-linux.git] / drivers / staging / greybus / interface.c
index edac2383e492a2471fd34fdc19549d4603b53c51..c3453502ae226a7a9be0ceecdfc09a4e31032622 100644 (file)
@@ -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;