summaryrefslogtreecommitdiff
path: root/cmd/fastboot.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-10 07:15:12 -0500
committerTom Rini <trini@konsulko.com>2018-12-10 07:15:12 -0500
commit48d299a799f8e60342f10309dc3d4eb8e4b453a1 (patch)
tree61176a4b76589978db8bc785727924f5af037e5e /cmd/fastboot.c
parent53287a89e90a842f7265446be89c3c6b2aff3271 (diff)
parent532ededd5cbff3d55e8c8e5b6377cec9e90f2152 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-usb
- DWC3 and UDC cleanup
Diffstat (limited to 'cmd/fastboot.c')
-rw-r--r--cmd/fastboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index ae3a5f627f1..0be83b78ac1 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -51,7 +51,7 @@ static int do_fastboot_usb(int argc, char *const argv[],
return CMD_RET_FAILURE;
}
- ret = board_usb_init(controller_index, USB_INIT_DEVICE);
+ ret = usb_gadget_initialize(controller_index);
if (ret) {
pr_err("USB init failed: %d\n", ret);
return CMD_RET_FAILURE;
@@ -82,7 +82,7 @@ static int do_fastboot_usb(int argc, char *const argv[],
exit:
g_dnl_unregister();
g_dnl_clear_detach();
- board_usb_cleanup(controller_index, USB_INIT_DEVICE);
+ usb_gadget_release(controller_index);
return ret;
#else