mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
usb: host: Fix kernel warning on probe
Change-Id: I6d5b10e047807f9bcb36809672705f8a8b2d11a4 Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user