summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-05-18 09:41:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-18 11:25:05 +0200
commitb63352f38aa1829a520a20af042c90ab9b09ddf0 (patch)
tree1021a55ac74e839c932031d64163be2d008d5521 /include
parentc6a6451305185ab7af42db574ee91766590481d9 (diff)
downloadbarebox-b63352f38aa1829a520a20af042c90ab9b09ddf0.tar.gz
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>
Diffstat (limited to 'include')
-rw-r--r--include/net.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 25d7b6e..08f897e 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
*/