Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364745
b: refs/heads/master
c: 6f3ed4e
h: refs/heads/master
i:
  364743: c74381d
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent d744642 commit ee36c9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 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: e299bd93e4fb8e3fa426d30e0a0796b99052a572
refs/heads/master: 6f3ed4ec182d191d1ba48fbf5aed021d2d00dd37
19 changes: 9 additions & 10 deletions trunk/drivers/usb/host/ehci-mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,16 @@ static int mv_ehci_probe(struct platform_device *pdev)

ehci_mv->mode = pdata->mode;
if (ehci_mv->mode == MV_USB_MODE_OTG) {
#if IS_ENABLED(CONFIG_USB_PHY)
ehci_mv->otg = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(ehci_mv->otg)) {
dev_err(&pdev->dev,
"unable to find transceiver\n");
retval = -ENODEV;
if (IS_ERR(ehci_mv->otg)) {
retval = PTR_ERR(ehci_mv->otg);

if (retval == -ENXIO)
dev_info(&pdev->dev, "MV_USB_MODE_OTG "
"must have CONFIG_USB_PHY enabled\n");
else
dev_err(&pdev->dev,
"unable to find transceiver\n");
goto err_disable_clk;
}

Expand All @@ -258,11 +262,6 @@ static int mv_ehci_probe(struct platform_device *pdev)
}
/* otg will enable clock before use as host */
mv_ehci_disable(ehci_mv);
#else
dev_info(&pdev->dev, "MV_USB_MODE_OTG "
"must have CONFIG_USB_PHY enabled\n");
goto err_disable_clk;
#endif
} else {
if (pdata->set_vbus)
pdata->set_vbus(1);
Expand Down

0 comments on commit ee36c9b

Please sign in to comment.