From: Sascha Silbe Date: Sun, 11 Aug 2013 15:08:23 +0000 (+0200) Subject: NET: mvgbe: avoid unused variable warning when used without phylib support X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0611c6017c9fc56a731ee5f8bbd91c7ee1a50849;p=u-boot.git NET: mvgbe: avoid unused variable warning when used without phylib support Avoid a recently introduced unused variable warning for boards that use mvgbe but not phylib. Signed-off-by: Sascha Silbe Patch: 266334 --- diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 6c901d1eaa..0cd06b6a69 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -420,8 +420,9 @@ static int mvgbe_init(struct eth_device *dev) { struct mvgbe_device *dmvgbe = to_mvgbe(dev); struct mvgbe_registers *regs = dmvgbe->regs; -#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \ - && defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN) +#if (defined(CONFIG_MII) || defined(CONFIG_CMD_MII)) && \ + !defined(CONFIG_PHYLIB) && \ + defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN) int i; #endif /* setup RX rings */