Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354595
b: refs/heads/master
c: 25736e0
h: refs/heads/master
i:
  354593: 57d6b3c
  354591: 4e118d1
v: v3
  • Loading branch information
Ming Lei authored and Felipe Balbi committed Jan 17, 2013
1 parent c989e3f commit bfdb3cb
Show file tree
Hide file tree
Showing 9 changed files with 17 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: 681d1e8761ca773967bce9bd1bb2896f07279551
refs/heads/master: 25736e0c8269e9613aa6036fbc591818daa30d14
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/am35x.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static int am35x_musb_init(struct musb *musb)
usb_nop_xceiv_register();
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv))
return -ENODEV;
return -EPROBE_DEFER;

setup_timer(&otg_workaround, otg_timer, (unsigned long) musb);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/blackfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static int bfin_musb_init(struct musb *musb)
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv)) {
gpio_free(musb->config->gpio_vrsel);
return -ENODEV;
return -EPROBE_DEFER;
}

bfin_musb_reg_init(musb);
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/usb/musb/da8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ static int da8xx_musb_init(struct musb *musb)
{
void __iomem *reg_base = musb->ctrl_base;
u32 rev;
int ret = -ENODEV;

musb->mregs += DA8XX_MENTOR_CORE_OFFSET;

Expand All @@ -420,8 +421,10 @@ static int da8xx_musb_init(struct musb *musb)

usb_nop_xceiv_register();
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv))
if (IS_ERR_OR_NULL(musb->xceiv)) {
ret = -EPROBE_DEFER;
goto fail;
}

setup_timer(&otg_workaround, otg_timer, (unsigned long)musb);

Expand All @@ -441,7 +444,7 @@ static int da8xx_musb_init(struct musb *musb)
musb->isr = da8xx_musb_interrupt;
return 0;
fail:
return -ENODEV;
return ret;
}

static int da8xx_musb_exit(struct musb *musb)
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/usb/musb/davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,14 @@ static int davinci_musb_init(struct musb *musb)
{
void __iomem *tibase = musb->ctrl_base;
u32 revision;
int ret = -ENODEV;

usb_nop_xceiv_register();
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv))
if (IS_ERR_OR_NULL(musb->xceiv)) {
ret = -EPROBE_DEFER;
goto unregister;
}

musb->mregs += DAVINCI_BASE_OFFSET;

Expand Down Expand Up @@ -438,7 +441,7 @@ static int davinci_musb_init(struct musb *musb)
usb_put_phy(musb->xceiv);
unregister:
usb_nop_xceiv_unregister();
return -ENODEV;
return ret;
}

static int davinci_musb_exit(struct musb *musb)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/musb_dsps.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ static int dsps_musb_init(struct musb *musb)
usb_nop_xceiv_register();
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv))
return -ENODEV;
return -EPROBE_DEFER;

/* Returns zero if e.g. not clocked */
rev = dsps_readl(reg_base, wrp->revision);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static int omap2430_musb_init(struct musb *musb)
musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv)) {
pr_err("HS USB OTG: no transceiver configured\n");
return -ENODEV;
return -EPROBE_DEFER;
}

musb->isr = omap2430_musb_interrupt;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/tusb6010.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ static int tusb_musb_init(struct musb *musb)
usb_nop_xceiv_register();
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv))
return -ENODEV;
return -EPROBE_DEFER;

pdev = to_platform_device(musb->controller);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/ux500.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int ux500_musb_init(struct musb *musb)
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv)) {
pr_err("HS USB OTG: no transceiver configured\n");
return -ENODEV;
return -EPROBE_DEFER;
}

musb->isr = ux500_musb_interrupt;
Expand Down

0 comments on commit bfdb3cb

Please sign in to comment.