]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx28s: print message if fecmxc_initialize() fails
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 24 Oct 2013 11:35:21 +0000 (13:35 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 24 Oct 2013 11:35:21 +0000 (13:35 +0200)
board/karo/tx28/tx28.c

index 6b95fba4e1cbce230b20a46aa438ca8d51ac13e2..48af1246a4c9d2f86e3a83eac2482b8ac6566636 100644 (file)
@@ -296,13 +296,16 @@ int board_eth_init(bd_t *bis)
                        return ret;
                }
        }
                        return ret;
                }
        }
-       return 0;
 #else
        if (getenv("ethaddr")) {
                ret = fecmxc_initialize(bis);
 #else
        if (getenv("ethaddr")) {
                ret = fecmxc_initialize(bis);
+               if (ret) {
+                       printf("FEC MXS: Unable to init FEC\n");
+                       return ret;
+               }
        }
        }
-       return ret;
 #endif
 #endif
+       return 0;
 }
 #endif /* CONFIG_FEC_MXC */
 
 }
 #endif /* CONFIG_FEC_MXC */