summaryrefslogtreecommitdiffstats
path: root/common/cmd_dfu.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2015-02-23 18:40:18 +0530
committerMarek Vasut <marex@denx.de>2015-04-14 05:48:11 +0200
commitdb378d786df0675aa6fc795a2198d000fddd33cc (patch)
treefcd23aab7385c927ef239d4a77dacedee470274c /common/cmd_dfu.c
parent04afd5b59b2edcb0bd035f126bdbe27c31782772 (diff)
downloadtalos-obmc-uboot-db378d786df0675aa6fc795a2198d000fddd33cc.tar.gz
talos-obmc-uboot-db378d786df0675aa6fc795a2198d000fddd33cc.zip
common: cmd_dfu: invoke board_usb_cleanup() for cleaning up
Invoked board_usb_cleanup for cleaning up initialized USB. It will be invoked if the user enterts ctrl-C. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'common/cmd_dfu.c')
-rw-r--r--common/cmd_dfu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c
index e975abebc9..161d38bf28 100644
--- a/common/cmd_dfu.c
+++ b/common/cmd_dfu.c
@@ -68,6 +68,7 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
exit:
g_dnl_unregister();
+ board_usb_cleanup(controller_index, USB_INIT_DEVICE);
done:
dfu_free_entities();
OpenPOWER on IntegriCloud