}
struct gb_connection *
-gb_connection_create_dynamic(struct gb_interface *intf,
- struct gb_bundle *bundle,
- u16 cport_id)
+gb_connection_create_dynamic(struct gb_bundle *bundle, u16 cport_id)
{
+ struct gb_interface *intf = bundle->intf;
+
return gb_connection_create(intf->hd, -1, intf, bundle, cport_id);
}
EXPORT_SYMBOL_GPL(gb_connection_create_dynamic);
struct gb_connection *gb_connection_create_static(struct gb_host_device *hd,
u16 hd_cport_id);
struct gb_connection *gb_connection_create_control(struct gb_interface *intf);
-struct gb_connection *gb_connection_create_dynamic(struct gb_interface *intf,
- struct gb_bundle *bundle, u16 cport_id);
+struct gb_connection *gb_connection_create_dynamic(struct gb_bundle *bundle,
+ u16 cport_id);
void gb_connection_destroy(struct gb_connection *connection);
static inline bool gb_connection_is_static(struct gb_connection *connection)
for (i = 0; i < data->num_cports; ++i) {
cport_desc = &bundle->cport_desc[i];
- connection = gb_connection_create_dynamic(bundle->intf,
- bundle,
+ connection = gb_connection_create_dynamic(bundle,
le16_to_cpu(cport_desc->id));
if (!connection)
goto err_connections_destroy;