usb: musb: jz4740: Silence error if code is -EPROBE_DEFER
Avoid printing any error message if the error code is -EPROBE_DEFER. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Bin Liu <b-liu@ti.com> Link: https://lore.kernel.org/r/20191216162432.1256-1-b-liu@ti.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f6ece9b0e5
commit
ce03cbcb4b
drivers/usb/musb
|
@ -75,14 +75,17 @@ static struct musb_hdrc_platform_data jz4740_musb_platform_data = {
|
||||||
static int jz4740_musb_init(struct musb *musb)
|
static int jz4740_musb_init(struct musb *musb)
|
||||||
{
|
{
|
||||||
struct device *dev = musb->controller->parent;
|
struct device *dev = musb->controller->parent;
|
||||||
|
int err;
|
||||||
|
|
||||||
if (dev->of_node)
|
if (dev->of_node)
|
||||||
musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0);
|
musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0);
|
||||||
else
|
else
|
||||||
musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
|
musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
|
||||||
if (IS_ERR(musb->xceiv)) {
|
if (IS_ERR(musb->xceiv)) {
|
||||||
dev_err(dev, "No transceiver configured\n");
|
err = PTR_ERR(musb->xceiv);
|
||||||
return PTR_ERR(musb->xceiv);
|
if (err != -EPROBE_DEFER)
|
||||||
|
dev_err(dev, "No transceiver configured: %d", err);
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Silicon does not implement ConfigData register.
|
/* Silicon does not implement ConfigData register.
|
||||||
|
|
Loading…
Reference in New Issue