summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Silbe <t-uboot@infra-silbe.de>2013-08-11 17:08:23 +0200
committerJoe Hershberger <joe.hershberger@ni.com>2013-11-22 16:50:34 -0600
commit0611c6017c9fc56a731ee5f8bbd91c7ee1a50849 (patch)
tree77917708a44c786a767f73b12ba86d38e13a4c88
parent57d33d4b4063ef731c35ba5b7b03e2e510c4ee65 (diff)
downloadu-boot-imx-0611c6017c9fc56a731ee5f8bbd91c7ee1a50849.zip
u-boot-imx-0611c6017c9fc56a731ee5f8bbd91c7ee1a50849.tar.gz
u-boot-imx-0611c6017c9fc56a731ee5f8bbd91c7ee1a50849.tar.bz2
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 <t-uboot@infra-silbe.de> Patch: 266334
-rw-r--r--drivers/net/mvgbe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c
index 6c901d1..0cd06b6 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 */