]> Git Repo - J-u-boot.git/commitdiff
dm: eth: Do not print misleading "Net Initialization Skipped"
authorBin Meng <[email protected]>
Fri, 28 Aug 2015 05:25:52 +0000 (22:25 -0700)
committerSimon Glass <[email protected]>
Wed, 9 Sep 2015 13:48:03 +0000 (07:48 -0600)
With driver model, board_eth_init() or cpu_eth_init() is not a must.
Thus we don't need print a misleading "Net Initialization Skipped".

Signed-off-by: Bin Meng <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
net/eth.c

index d3ec8d64d596d3a8e51336617b8de0032c87812b..c46a8c30500130bff53f4766d15724500c94bfdb 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -107,7 +107,9 @@ static void eth_common_init(void)
                if (cpu_eth_init(gd->bd) < 0)
                        printf("CPU Net Initialization Failed\n");
        } else {
+#ifndef CONFIG_DM_ETH
                printf("Net Initialization Skipped\n");
+#endif
        }
 }
 
This page took 0.037238 seconds and 4 git commands to generate.