diff mbox

[U-Boot,2/3] usb: host: xhci-omap: invoke board_usb_cleanup in xhci_hcd_stop

Message ID 1439205351-14092-3-git-send-email-kishon@ti.com
State Accepted
Delegated to: Marek Vasut
Headers show

Commit Message

Kishon Vijay Abraham I Aug. 10, 2015, 11:15 a.m. UTC
xhci omap driver has board_usb_init in xhci_hcd_init but doesn't have
the corresponding cleanup function in xhci_hcd_stop.

Fix it here by invoking board_usb_cleanup() in xhci_hcd_stop().

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
---
 drivers/usb/host/xhci-omap.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Aug. 11, 2015, 12:33 a.m. UTC | #1
On Mon, Aug 10, 2015 at 04:45:50PM +0530, Kishon Vijay Abraham I wrote:

> xhci omap driver has board_usb_init in xhci_hcd_init but doesn't have
> the corresponding cleanup function in xhci_hcd_stop.
> 
> Fix it here by invoking board_usb_cleanup() in xhci_hcd_stop().
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
> Acked-by: Marek Vasut <marex@denx.de>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c
index 3a55208..104e7a7 100644
--- a/drivers/usb/host/xhci-omap.c
+++ b/drivers/usb/host/xhci-omap.c
@@ -96,4 +96,5 @@  void xhci_hcd_stop(int index)
 	struct omap_xhci *ctx = &omap;
 
 	omap_xhci_core_exit(ctx);
+	board_usb_cleanup(index, USB_INIT_HOST);
 }