Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364741
b: refs/heads/master
c: 4dbb716
h: refs/heads/master
i:
  364739: d4b438c
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 933aa07 commit 544c8a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: d105e7f86f890a530cdefc2a715121345de30dc2
refs/heads/master: 4dbb71612505de1d3d69d011199554f86273c5e9
11 changes: 7 additions & 4 deletions trunk/drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2127,16 +2127,19 @@ static int mv_udc_probe(struct platform_device *pdev)

udc->dev = pdev;

#if IS_ENABLED(CONFIG_USB_PHY)
if (pdata->mode == MV_USB_MODE_OTG) {
udc->transceiver = devm_usb_get_phy(&pdev->dev,
USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(udc->transceiver)) {
if (IS_ERR(udc->transceiver)) {
retval = PTR_ERR(udc->transceiver);

if (retval == -ENXIO)
return retval;

udc->transceiver = NULL;
return -ENODEV;
return -EPROBE_DEFER;
}
}
#endif

udc->clknum = pdata->clknum;
for (clk_i = 0; clk_i < udc->clknum; clk_i++) {
Expand Down

0 comments on commit 544c8a5

Please sign in to comment.