usb: gadget: UMS: Invoke board specific USB cleanup interface
authorInha Song <ideal.song@samsung.com>
Tue, 3 Mar 2015 16:32:05 +0000 (17:32 +0100)
committerChanho Park <chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:30:12 +0000 (16:30 +0900)
This patch invokes board-specific USB cleanup (board_usb_cleanup)
function in the mass storage gadget

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

index 6228cee269881a6a022683d7b55438ce71534e34..f7d9ec80317b7fc5e01bd5272bd9f8376d742519 100644 (file)
@@ -167,6 +167,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
        }
 exit:
        g_dnl_unregister();
+       board_usb_cleanup(controller_index, USB_INIT_DEVICE);
        return CMD_RET_SUCCESS;
 }