Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185227
b: refs/heads/master
c: 2f0e40a
h: refs/heads/master
i:
  185225: a0df42b
  185223: 4d8cfec
v: v3
  • Loading branch information
Valentin Longchamp authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 2d7c013 commit aee3972
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cabe6cc2be287d0020d70944e8d0d0304e484a6c
refs/heads/master: 2f0e40aba1cafe3a834bfcbac8f1e704d496dab9
23 changes: 11 additions & 12 deletions trunk/drivers/usb/host/ehci-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
goto err_ioremap;
}

/* call platform specific init function */
if (pdata->init) {
ret = pdata->init(pdev);
if (ret) {
dev_err(dev, "platform init failed\n");
goto err_init;
}
/* platforms need some time to settle changed IO settings */
mdelay(10);
}

/* enable clocks */
priv->usbclk = clk_get(dev, "usb");
if (IS_ERR(priv->usbclk)) {
Expand Down Expand Up @@ -192,18 +203,6 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
if (ret < 0)
goto err_init;

/* call platform specific init function */
if (pdata->init) {
ret = pdata->init(pdev);
if (ret) {
dev_err(dev, "platform init failed\n");
goto err_init;
}
}

/* most platforms need some time to settle changed IO settings */
mdelay(10);

/* Initialize the transceiver */
if (pdata->otg) {
pdata->otg->io_priv = hcd->regs + ULPI_VIEWPORT_OFFSET;
Expand Down

0 comments on commit aee3972

Please sign in to comment.