From: Inha Song <ideal.song@samsung.com>
Date: Tue, 3 Mar 2015 16:32:06 +0000 (+0100)
Subject: usb: gadget: thor: Invoke board specific USB cleanup interface
X-Git-Tag: v2025.01-rc5-pxa1908~13408
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=d281730f9c5ca15c294004fd1971752016fe5a34;p=u-boot.git

usb: gadget: thor: Invoke board specific USB cleanup interface

This patch invokes board-specific USB cleanup (board_usb_cleanup)
function in the thor gadget.

Signed-off-by: Inha Song <ideal.song@samsung.com>
---

diff --git a/common/cmd_thordown.c b/common/cmd_thordown.c
index 8ed1dc6f9e..436b7f5631 100644
--- a/common/cmd_thordown.c
+++ b/common/cmd_thordown.c
@@ -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();