aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-omap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-omap.c')
-rw-r--r--drivers/usb/host/ehci-omap.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 5c78f9e71466..a44294d13494 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -242,15 +242,6 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
242 242
243 ehci_reset(omap_ehci); 243 ehci_reset(omap_ehci);
244 244
245 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
246 if (ret) {
247 dev_err(dev, "failed to add hcd with err %d\n", ret);
248 goto err_add_hcd;
249 }
250
251 /* root ports should always stay powered */
252 ehci_port_power(omap_ehci, 1);
253
254 if (pdata->phy_reset) { 245 if (pdata->phy_reset) {
255 /* Hold the PHY in RESET for enough time till 246 /* Hold the PHY in RESET for enough time till
256 * PHY is settled and ready 247 * PHY is settled and ready
@@ -258,12 +249,21 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
258 udelay(10); 249 udelay(10);
259 250
260 if (gpio_is_valid(pdata->reset_gpio_port[0])) 251 if (gpio_is_valid(pdata->reset_gpio_port[0]))
261 gpio_set_value(pdata->reset_gpio_port[0], 1); 252 gpio_set_value_cansleep(pdata->reset_gpio_port[0], 1);
262 253
263 if (gpio_is_valid(pdata->reset_gpio_port[1])) 254 if (gpio_is_valid(pdata->reset_gpio_port[1]))
264 gpio_set_value(pdata->reset_gpio_port[1], 1); 255 gpio_set_value_cansleep(pdata->reset_gpio_port[1], 1);
265 } 256 }
266 257
258 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
259 if (ret) {
260 dev_err(dev, "failed to add hcd with err %d\n", ret);
261 goto err_add_hcd;
262 }
263
264 /* root ports should always stay powered */
265 ehci_port_power(omap_ehci, 1);
266
267 return 0; 267 return 0;
268 268
269err_add_hcd: 269err_add_hcd: