diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of_net.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/of_net.h b/include/linux/of_net.h index f47464188710..61bf53b02779 100644 --- a/include/linux/of_net.h +++ b/include/linux/of_net.h | |||
| @@ -11,6 +11,16 @@ | |||
| 11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
| 12 | extern const int of_get_phy_mode(struct device_node *np); | 12 | extern const int of_get_phy_mode(struct device_node *np); |
| 13 | extern const void *of_get_mac_address(struct device_node *np); | 13 | extern const void *of_get_mac_address(struct device_node *np); |
| 14 | #else | ||
| 15 | static inline const int of_get_phy_mode(struct device_node *np) | ||
| 16 | { | ||
| 17 | return -ENODEV; | ||
| 18 | } | ||
| 19 | |||
| 20 | static inline const void *of_get_mac_address(struct device_node *np) | ||
| 21 | { | ||
| 22 | return NULL; | ||
| 23 | } | ||
| 14 | #endif | 24 | #endif |
| 15 | 25 | ||
| 16 | #endif /* __LINUX_OF_NET_H */ | 26 | #endif /* __LINUX_OF_NET_H */ |
