diff mbox

[U-Boot,04/14] usb: gadget: thor: Invoke board specific USB cleanup interface

Message ID 1425400336-20442-5-git-send-email-l.majewski@samsung.com
State Awaiting Upstream
Delegated to: Łukasz Majewski
Headers show

Commit Message

Łukasz Majewski March 3, 2015, 4:32 p.m. UTC
From: Inha Song <ideal.song@samsung.com>

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 | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/common/cmd_thordown.c b/common/cmd_thordown.c
index 8ed1dc6..436b7f5 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();