]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mpc8xx/fec.c
* Fix config option spelling in PM520 config file
[karo-tx-uboot.git] / cpu / mpc8xx / fec.c
index 34a4b20a7af3755a981f8db988f8d0a2f7c601ed..39fe6903160bddf66c407f3cf044efc19ec1ac7e 100644 (file)
@@ -689,13 +689,14 @@ static int fec_init (struct eth_device *dev, bd_t * bd)
                 * wait for the PHY to wake up after reset
                 */
                efis->actual_phy_addr = mii_discover_phy (dev);
-#else
-               efis->actual_phy_addr = -1;
-#endif
+
                if (efis->actual_phy_addr == -1) {
                        printf ("Unable to discover phy!\n");
                        return 0;
                }
+#else
+               efis->actual_phy_addr = -1;
+#endif
        } else {
                efis->actual_phy_addr = efis->phy_addr;
        }