mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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 <premi@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
c06825873d
commit
5626f336ca
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue