summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSascha Silbe <t-uboot@infra-silbe.de>2013-08-11 15:08:23 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2013-11-22 22:50:34 (GMT)
commit0611c6017c9fc56a731ee5f8bbd91c7ee1a50849 (patch)
tree77917708a44c786a767f73b12ba86d38e13a4c88 /drivers
parent57d33d4b4063ef731c35ba5b7b03e2e510c4ee65 (diff)
downloadu-boot-0611c6017c9fc56a731ee5f8bbd91c7ee1a50849.tar.xz
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
Diffstat (limited to 'drivers')
-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 */