From b63352f38aa1829a520a20af042c90ab9b09ddf0 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Fri, 18 May 2012 09:41:42 +0200 Subject: iim: fix compilation when NET is not selected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- include/net.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/net.h b/include/net.h index 25d7b6e024..08f897e958 100644 --- a/include/net.h +++ b/include/net.h @@ -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 */ -- cgit v1.2.3