]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
omap3evm: eth: Include functions only when necessary
authorSanjeev Premi <premi@ti.com>
Mon, 18 Jul 2011 13:23:00 +0000 (09:23 -0400)
committerU-Boot <uboot@aari01-12.(none)>
Wed, 3 Aug 2011 10:49:19 +0000 (12:49 +0200)
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>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
board/ti/evm/evm.c

index 2c95fae68cf7bedb7580007ce70aa5f794a494ca..30c1c570f16f05a1e490f8c6eb3c9b73d003e918 100644 (file)
@@ -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 */