From: Prafulla Wadaskar Date: Wed, 9 Sep 2009 10:29:19 +0000 (+0530) Subject: net: kirkwood_egiga.c: fixed build warning X-Git-Tag: v2009.11-rc1~73 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aba8237257dd15b0e76cc517f0e741c0908ee0b9;p=u-boot 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 Signed-off-by: Ben Warren --- diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c index 479035d552..07a86cd6f7 100644 --- a/drivers/net/kirkwood_egiga.c +++ b/drivers/net/kirkwood_egiga.c @@ -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);