9
0
Fork 0

iim: fix compilation when NET is not selected

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2012-05-18 09:41:42 +02:00 committed by Sascha Hauer
parent c6a6451305
commit b63352f38a
1 changed files with 6 additions and 1 deletions

View File

@ -64,8 +64,13 @@ void eth_halt(void); /* stop SCC */
* board code for boards which store their MAC address at some unusual
* place.
*/
#if !defined(CONFIG_NET)
static inline void eth_register_ethaddr(int ethid, const char *ethaddr)
{
}
#else
void eth_register_ethaddr(int ethid, const char *ethaddr);
#endif
/*
* Ethernet header
*/