usb: host: Fix kernel warning on probe

Change-Id: I6d5b10e047807f9bcb36809672705f8a8b2d11a4
Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
Benoit Goby
2010-08-10 16:36:58 -07:00
committed by Colin Cross
parent 49dfd54af3
commit e1bc56e357

View File

@@ -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);