From e1bc56e35751057c2994852a80b597231614c8bf Mon Sep 17 00:00:00 2001 From: Benoit Goby Date: Tue, 10 Aug 2010 16:36:58 -0700 Subject: [PATCH] usb: host: Fix kernel warning on probe Change-Id: I6d5b10e047807f9bcb36809672705f8a8b2d11a4 Signed-off-by: Benoit Goby --- drivers/usb/host/ehci-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index d9ea852ccc89..c0461bce7e36 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -456,14 +456,14 @@ static int tegra_ehci_probe(struct platform_device *pdev) tegra->transceiver = otg_get_transceiver(); #endif - tegra->host_reinited = 1; - err = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED); if (err != 0) { dev_err(&pdev->dev, "Failed to add USB HCD\n"); goto fail; } + tegra->host_reinited = 1; + if (tegra->transceiver) { otg_set_host(tegra->transceiver, (struct usb_bus *)hcd); -- 2.34.1