Move it inside the #ifdef CONFIG_NET_MULTI to avoid
eth.c:64: warning: 'eth_mac_skip' defined but not used
messages from a number of old, non-CONFIG_NET_MULTI boards.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
return eth_getenv_enetaddr(enetvar, enetaddr);
}
+#ifdef CONFIG_NET_MULTI
+
static int eth_mac_skip(int index)
{
char enetvar[15];
return ((skip_state = getenv(enetvar)) != NULL);
}
-#ifdef CONFIG_NET_MULTI
-
/*
* CPU and board-specific Ethernet initializations. Aliased function
* signals caller to move on