summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrafulla Wadaskar <prafulla@marvell.com>2009-09-09 15:59:19 +0530
committerBen Warren <biggerbadderben@gmail.com>2009-10-04 22:55:02 -0700
commitaba8237257dd15b0e76cc517f0e741c0908ee0b9 (patch)
tree6c91de5dad8643419abeda8fad6c61bedc216b00
parent7194ab809532eeca3e2ee5dc12017cb901cc5842 (diff)
downloadu-boot-imx-aba8237257dd15b0e76cc517f0e741c0908ee0b9.zip
u-boot-imx-aba8237257dd15b0e76cc517f0e741c0908ee0b9.tar.gz
u-boot-imx-aba8237257dd15b0e76cc517f0e741c0908ee0b9.tar.bz2
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>
-rw-r--r--drivers/net/kirkwood_egiga.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c
index 479035d..07a86cd 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);