diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-17 14:51:56 -0700 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-01-28 12:32:45 -0600 |
commit | c32a6fd07b1839e4a45729587ebc8e1c55601a4d (patch) | |
tree | 29b17ac2ae6aed2d2e1576e0f60767167304604d /net | |
parent | dfa71e9fcbb142d3cf253054f83e4a4b4ea63f94 (diff) | |
download | u-boot-c32a6fd07b1839e4a45729587ebc8e1c55601a4d.tar.gz |
net: Don't call board/cpu_eth_init() with driver model
We should avoid weak functions with driver model. Existing boards that use
driver model don't need them, so let's kill them off.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,6 +96,7 @@ static void eth_common_init(void) phy_init(); #endif +#ifndef CONFIG_DM_ETH /* * If board-specific initialization exists, call it. * If not, call a CPU-specific one @@ -107,10 +108,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 } +#endif } #ifdef CONFIG_DM_ETH |