Rename the interface-initialisation function gb_interface_enable(),
which is more descriptive.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
}
/*
- * Intialise an interface by enabling the control connection and fetching the
+ * Enable an interface by enabling its control connection and fetching the
* manifest and other information over it.
*/
-int gb_interface_init(struct gb_interface *intf)
+int gb_interface_enable(struct gb_interface *intf)
{
struct gb_bundle *bundle, *tmp;
int ret, size;
struct gb_interface *gb_interface_create(struct gb_host_device *hd,
u8 interface_id);
-int gb_interface_init(struct gb_interface *intf);
+int gb_interface_enable(struct gb_interface *intf);
int gb_interface_add(struct gb_interface *intf);
void gb_interface_remove(struct gb_interface *intf);
if (ret)
goto out_interface_add;
- ret = gb_interface_init(intf);
+ ret = gb_interface_enable(intf);
if (ret) {
- dev_err(&svc->dev, "failed to initialize interface %u: %d\n",
+ dev_err(&svc->dev, "failed to enable interface %u: %d\n",
intf_id, ret);
goto out_interface_add;
}