common: cmd_dfu: invoke board_usb_cleanup() for cleaning up
[platform/kernel/u-boot.git] / common / cmd_dfu.c
index e975abe..161d38b 100644 (file)
@@ -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();