Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[firefly-linux-kernel-4.4.55.git] / include / linux / of_net.h
index f47464188710e8271e37faaa8a457da95e3533df..61bf53b02779200323e19c9c6671ec6b78cd1fde 100644 (file)
 #include <linux/of.h>
 extern const int of_get_phy_mode(struct device_node *np);
 extern const void *of_get_mac_address(struct device_node *np);
+#else
+static inline const int of_get_phy_mode(struct device_node *np)
+{
+       return -ENODEV;
+}
+
+static inline const void *of_get_mac_address(struct device_node *np)
+{
+       return NULL;
+}
 #endif
 
 #endif /* __LINUX_OF_NET_H */