]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/of_net.h
mm/memory_hotplug: export generic_online_page()
[linux.git] / include / linux / of_net.h
index 6aeaea1775e66219b8d7b200ed1f2370a7a908e5..71bbfcf3adcd9127c61985a3710e102f020f4bb5 100644 (file)
@@ -6,15 +6,18 @@
 #ifndef __LINUX_OF_NET_H
 #define __LINUX_OF_NET_H
 
+#include <linux/phy.h>
+
 #ifdef CONFIG_OF_NET
 #include <linux/of.h>
 
 struct net_device;
-extern int of_get_phy_mode(struct device_node *np);
+extern int of_get_phy_mode(struct device_node *np, phy_interface_t *interface);
 extern const void *of_get_mac_address(struct device_node *np);
 extern struct net_device *of_find_net_device_by_node(struct device_node *np);
 #else
-static inline int of_get_phy_mode(struct device_node *np)
+static inline int of_get_phy_mode(struct device_node *np,
+                                 phy_interface_t *interface)
 {
        return -ENODEV;
 }