mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
net: kirkwood_egiga.c: fixed build warning
if link up detection code is disabled through config option, it gives build warning. This patch fixes the same Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
7194ab8095
commit
aba8237257
1 changed files with 3 additions and 1 deletions
|
|
@ -400,8 +400,10 @@ static int kwgbe_init(struct eth_device *dev)
|
|||
{
|
||||
struct kwgbe_device *dkwgbe = to_dkwgbe(dev);
|
||||
struct kwgbe_registers *regs = dkwgbe->regs;
|
||||
#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \
|
||||
&& defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN)
|
||||
int i;
|
||||
|
||||
#endif
|
||||
/* setup RX rings */
|
||||
kwgbe_init_rx_desc_ring(dkwgbe);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue