]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: ehci-omap: don't complain on -EPROBE_DEFER when no PHY found
authorLadislav Michl <ladis@linux-mips.org>
Thu, 18 Jan 2018 21:13:18 +0000 (22:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 14:34:38 +0000 (15:34 +0100)
Don't complain on -EPROBE_DEFER when no PHY found, the driver
probe will be retried later.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-omap.c

index 854b146a457d7805f47510c7d1ca389359593605..8d8bafc70c1f421d9f9f63f04b0455978e73ba3b 100644 (file)
@@ -167,7 +167,8 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
                                continue;
 
                        ret = PTR_ERR(phy);
-                       dev_err(dev, "Can't get PHY device for port %d: %d\n",
+                       if (ret != -EPROBE_DEFER)
+                               dev_err(dev, "Can't get PHY for port %d: %d\n",
                                        i, ret);
                        goto err_phy;
                }