usb: gadget: thor: Invoke board specific USB cleanup interface
authorInha Song <ideal.song@samsung.com>
Tue, 3 Mar 2015 16:32:06 +0000 (17:32 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:48:11 +0000 (05:48 +0200)
This patch invokes board-specific USB cleanup (board_usb_cleanup)
function in the thor gadget.

Signed-off-by: Inha Song <ideal.song@samsung.com>
common/cmd_thordown.c

index 8ed1dc6f9e47a4089885b4232d85bcaa7b3ab3b6..436b7f56315eb5985016d4d597c6c8ba94959885 100644 (file)
@@ -56,6 +56,7 @@ int do_thor_down(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();