]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/musb/omap2430.c
usb: musb: omap2430: fix PHY error handling
[~andy/linux] / drivers / usb / musb / omap2430.c
index ec460eaed842017716310b2f134d40f956161b2d..798e029e3db024c60184930bb81c30784e6486c7 100644 (file)
@@ -353,7 +353,12 @@ static int omap2430_musb_init(struct musb *musb)
        else
                musb->xceiv = devm_usb_get_phy_dev(dev, 0);
 
-       if (IS_ERR_OR_NULL(musb->xceiv)) {
+       if (IS_ERR(musb->xceiv)) {
+               status = PTR_ERR(musb->xceiv);
+
+               if (status == -ENXIO)
+                       return status;
+
                pr_err("HS USB OTG: no transceiver configured\n");
                return -EPROBE_DEFER;
        }