[U-Boot] [UBOOT RFC PATCH 08/13] common: cmd_dfu: invoke board_usb_cleanup() for cleaning up

Kishon Vijay Abraham I
2014-08-18T14:28:30Z

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>
---
common/cmd_dfu.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c
index a03538d..1e7d50c 100644
--- a/common/cmd_dfu.c
+++ b/common/cmd_dfu.c
@@ -55,6 +55,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();

--
1.9.1