From 5626f336caa7d19e7a79bd836a221a6899dc70b5 Mon Sep 17 00:00:00 2001 From: Sanjeev Premi Date: Mon, 18 Jul 2011 09:23:00 -0400 Subject: omap3evm: eth: Include functions only when necessary These functions are not required when CONFIG_CMD_NET is not defined: - setup_net_chip() - reset_net_chip() - board_eth_init() This patch wraps them in #ifdef CONFIG_CMD_NET...#endif Signed-off-by: Sanjeev Premi Signed-off-by: Sandeep Paulraj --- board/ti/evm/evm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c index 2c95fae68c..30c1c570f1 100644 --- a/board/ti/evm/evm.c +++ b/board/ti/evm/evm.c @@ -153,6 +153,7 @@ void set_muxconf_regs(void) MUX_EVM(); } +#ifdef CONFIG_CMD_NET /* * Routine: setup_net_chip * Description: Setting up the configuration GPMC registers specific to the @@ -219,3 +220,4 @@ int board_eth_init(bd_t *bis) #endif return rc; } +#endif /* CONFIG_CMD_NET */ -- cgit v1.2.1