diff mbox

[UBOOT,RFC,08/13] common: cmd_dfu: invoke board_usb_cleanup() for cleaning up

Message ID 1408372115-4570-9-git-send-email-kishon@ti.com
State New
Headers show

Commit Message

Kishon Vijay Abraham I Aug. 18, 2014, 2:28 p.m. UTC
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 mbox

Patch

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();