Skip to content
Snippets Groups Projects
Commit 5626f336 authored by Sanjeev Premi's avatar Sanjeev Premi Committed by U-Boot
Browse files

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: default avatarSanjeev Premi <premi@ti.com>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent c0682587
No related branches found
No related tags found
No related merge requests found
...@@ -153,6 +153,7 @@ void set_muxconf_regs(void) ...@@ -153,6 +153,7 @@ void set_muxconf_regs(void)
MUX_EVM(); MUX_EVM();
} }
#ifdef CONFIG_CMD_NET
/* /*
* Routine: setup_net_chip * Routine: setup_net_chip
* Description: Setting up the configuration GPMC registers specific to the * Description: Setting up the configuration GPMC registers specific to the
...@@ -219,3 +220,4 @@ int board_eth_init(bd_t *bis) ...@@ -219,3 +220,4 @@ int board_eth_init(bd_t *bis)
#endif #endif
return rc; return rc;
} }
#endif /* CONFIG_CMD_NET */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment