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.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 54360baf4be0..d580875b3ac9 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -521,12 +521,14 @@ static int tegra_ehci_probe(struct platform_device *pdev)
e = -ENXIO;
goto fail_phy;
}
- res = request_mem_region(res->start, resource_size(res),
- dev_name(&pdev->dev));
- if (!res) {
- dev_err(&pdev->dev, "resource in use\n");
- e = -EBUSY;
- goto fail_phy;
+ if (!pdata->otg_mode) {
+ res = request_mem_region(res->start, resource_size(res),
+ dev_name(&pdev->dev));
+ if (!res) {
+ dev_err(&pdev->dev, "resource in use\n");
+ e = -EBUSY;
+ goto fail_phy;
+ }
}
hcd->rsrc_start = res->start;
hcd->rsrc_len = resource_size(res);