summaryrefslogtreecommitdiff
path: root/backport-include/linux/of_net.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/of_net.h')
-rw-r--r--backport-include/linux/of_net.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/backport-include/linux/of_net.h b/backport-include/linux/of_net.h
new file mode 100644
index 0000000..7f4b688
--- /dev/null
+++ b/backport-include/linux/of_net.h
@@ -0,0 +1,15 @@
+#ifndef _BP_OF_NET_H
+#define _BP_OF_NET_H
+#include_next <linux/of_net.h>
+#include <linux/version.h>
+
+#ifndef CONFIG_OF
+#if LINUX_VERSION_IS_LESS(3,10,0)
+static inline const void *of_get_mac_address(struct device_node *np)
+{
+ return NULL;
+}
+#endif
+#endif
+
+#endif /* _BP_OF_NET_H */