summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-tegra.c')
-rw-r--r--drivers/usb/host/ehci-tegra.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 02762e833e75..5da5a8f0de99 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -1138,6 +1138,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
"Couldn't enable USB host mode wakeup, irq=%d, "
"error=%d\n", tegra->irq, err);
err = 0;
+ tegra->irq = 0;
}
return err;
@@ -1233,7 +1234,8 @@ static int tegra_ehci_remove(struct platform_device *pdev)
/* Turn Off Interrupts */
ehci_writel(tegra->ehci, 0, &tegra->ehci->regs->intr_enable);
clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
- disable_irq_wake(tegra->irq);
+ if (tegra->irq)
+ disable_irq_wake(tegra->irq);
usb_remove_hcd(hcd);
usb_put_hcd(hcd);
cancel_delayed_work(&tegra->work);