ath79: ag71xx: defer probe if of_phy_connect failed
[openwrt/staging/jogo.git] / target / linux / ath79 / files / drivers / net / ethernet / atheros / ag71xx / ag71xx_phy.c
index f9df38d5303ca5a1e5d0f49945c3e267c28f5460..ac1af26860c604e0c9faff8df185e84c190d50f2 100644 (file)
@@ -75,8 +75,8 @@ int ag71xx_phy_connect(struct ag71xx *ag)
 
        if (!ag->phy_dev) {
                dev_err(&ag->pdev->dev,
-                       "Could not connect to PHY device\n");
-               return -ENODEV;
+                       "Could not connect to PHY device. Deferring probe.\n");
+               return -EPROBE_DEFER;
        }
 
        dev_info(&ag->pdev->dev, "connected to PHY at %s [uid=%08x, driver=%s]\n",