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 <[email protected]>
---
 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

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to