Patchwork [U-Boot] omap3evm: Wrap function under CONFIG_CMD_NET

login
register
mail settings
Submitter Sanjeev Premi
Date Oct. 19, 2010, 2:58 p.m.
Message ID <1287500304-8322-1-git-send-email-premi@ti.com>
Download mbox | patch
Permalink /patch/71888/
State Superseded
Delegated to: Sandeep Paulraj
Headers show

Comments

Sanjeev Premi - Oct. 19, 2010, 2:58 p.m.
The call to function setup_net_chip() is wrapped
inside #ifdef CONFIG_CMD_NET, but the implementation
wasn't.

Signed-off-by: Sanjeev Premi <premi@ti.com>
---
 board/ti/evm/evm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c
index 6163b12..bb19a33 100644
--- a/board/ti/evm/evm.c
+++ b/board/ti/evm/evm.c
@@ -133,6 +133,7 @@  void set_muxconf_regs(void)
 	MUX_EVM();
 }
 
+#if defined(CONFIG_CMD_NET)
 /*
  * Routine: setup_net_chip
  * Description: Setting up the configuration GPMC registers specific to the
@@ -170,6 +171,7 @@  static void setup_net_chip(void)
 	udelay(1);
 	writel(GPIO0, &gpio3_base->setdataout);
 }
+#endif
 
 int board_eth_init(bd_t *bis)
 {