aboutsummaryrefslogtreecommitdiff
path: root/common
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 /common
parent53287a89e90a842f7265446be89c3c6b2aff3271 (diff)
parent532ededd5cbff3d55e8c8e5b6377cec9e90f2152 (diff)
downloadu-boot-48d299a799f8e60342f10309dc3d4eb8e4b453a1.zip
u-boot-48d299a799f8e60342f10309dc3d4eb8e4b453a1.tar.gz
u-boot-48d299a799f8e60342f10309dc3d4eb8e4b453a1.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-usb
- DWC3 and UDC cleanup
Diffstat (limited to 'common')
-rw-r--r--common/dfu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/dfu.c b/common/dfu.c
index 2620d32..44d1484 100644
--- a/common/dfu.c
+++ b/common/dfu.c
@@ -23,9 +23,9 @@ int run_usb_dnl_gadget(int usbctrl_index, char *usb_dnl_gadget)
bool dfu_reset = false;
int ret, i = 0;
- ret = board_usb_init(usbctrl_index, USB_INIT_DEVICE);
+ ret = usb_gadget_initialize(usbctrl_index);
if (ret) {
- pr_err("board usb init failed\n");
+ pr_err("usb_gadget_initialize failed\n");
return CMD_RET_FAILURE;
}
g_dnl_clear_detach();
@@ -84,7 +84,7 @@ int run_usb_dnl_gadget(int usbctrl_index, char *usb_dnl_gadget)
}
exit:
g_dnl_unregister();
- board_usb_cleanup(usbctrl_index, USB_INIT_DEVICE);
+ usb_gadget_release(usbctrl_index);
if (dfu_reset)
do_reset(NULL, 0, 0, NULL);