return 0;
}
-static void svc_intf_remove(struct gb_connection *connection,
- struct gb_interface *intf)
+static void gb_svc_intf_remove(struct gb_svc *svc, struct gb_interface *intf)
{
- struct gb_svc *svc = connection->private;
u8 intf_id = intf->interface_id;
u8 device_id;
*/
dev_info(&svc->dev, "removing interface %hhu to add it again\n",
intf_id);
- svc_intf_remove(connection, intf);
+ gb_svc_intf_remove(svc, intf);
}
intf = gb_interface_create(hd, intf_id);
return -EINVAL;
}
- svc_intf_remove(op->connection, intf);
+ gb_svc_intf_remove(svc, intf);
return 0;
}