[U-Boot] [PATCH 6/7] zynq: Use board_eth_init if CMD_NET is not enabled

Michal Simek michal.simek at xilinx.com
Wed Jan 22 10:23:28 CET 2014


board_eth_init can be also called in cases where CMD_NET
is not enabled.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/zynq/board.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 08932a2..27aeaa4 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -83,7 +83,6 @@ int board_late_init(void)
 	return 0;
 }

-#ifdef CONFIG_CMD_NET
 int board_eth_init(bd_t *bis)
 {
 	u32 ret = 0;
@@ -117,7 +116,6 @@ int board_eth_init(bd_t *bis)
 #endif
 	return ret;
 }
-#endif

 #ifdef CONFIG_CMD_MMC
 int board_mmc_init(bd_t *bd)
--
1.8.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140122/be94c94f/attachment.pgp>


More information about the U-Boot mailing list