diff options
Diffstat (limited to 'include/linux/of_net.h')
| -rw-r--r-- | include/linux/of_net.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/of_net.h b/include/linux/of_net.h index f4746418871..34597c8c1a4 100644 --- a/include/linux/of_net.h +++ b/include/linux/of_net.h @@ -9,8 +9,18 @@ #ifdef CONFIG_OF_NET #include <linux/of.h> -extern const int of_get_phy_mode(struct device_node *np); +extern int of_get_phy_mode(struct device_node *np); extern const void *of_get_mac_address(struct device_node *np); +#else +static inline 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 */ |
