ptrace: revert "Prepare to fix racy accesses on task breakpoints"
[linux-2.6.git] / include / linux / of_net.h
blob61bf53b02779200323e19c9c6671ec6b78cd1fde
1 /*
2 * OF helpers for network devices.
4 * This file is released under the GPLv2
5 */
7 #ifndef __LINUX_OF_NET_H
8 #define __LINUX_OF_NET_H
10 #ifdef CONFIG_OF_NET
11 #include <linux/of.h>
12 extern const int of_get_phy_mode(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)
17 return -ENODEV;
20 static inline const void *of_get_mac_address(struct device_node *np)
22 return NULL;
24 #endif
26 #endif /* __LINUX_OF_NET_H */