summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-27 22:25:52 -0700
committerSimon Glass <sjg@chromium.org>2015-09-09 07:48:03 -0600
commitd8f79afa030a19e12b8effcae0e8247e271da60e (patch)
tree33fbad717f9f26a0787de939340aacfd5e4c16ec /net
parentaf2ca59e6352ba86b9cf8d8a5b96f7df6cecb044 (diff)
dm: eth: Do not print misleading "Net Initialization Skipped"
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 <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index d3ec8d64d59..c46a8c30500 100644
--- 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
}
}