[U-Boot,3/3] omap3evm: eth: Include functions only when necessary

Submitted by Sanjeev Premi on June 22, 2011, 7:24 p.m.

Details

Message ID 1308770649-3802-4-git-send-email-premi@ti.com
State Accepted
Commit 5626f336caa7d19e7a79bd836a221a6899dc70b5
Headers show

Commit Message

Sanjeev Premi June 22, 2011, 7:24 p.m.
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 <premi@ti.com>
---
 board/ti/evm/evm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c
index 57e5fa5..599e366 100644
--- a/board/ti/evm/evm.c
+++ b/board/ti/evm/evm.c
@@ -149,6 +149,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
@@ -211,3 +212,4 @@  int board_eth_init(bd_t *bis)
 #endif
 	return rc;
 }
+#endif /* CONFIG_CMD_NET */