aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_mdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_mdio.h')
-rw-r--r--include/linux/of_mdio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h
index 8163107b94b4..6fe8464ed767 100644
--- a/include/linux/of_mdio.h
+++ b/include/linux/of_mdio.h
@@ -19,6 +19,9 @@ extern struct phy_device *of_phy_connect(struct net_device *dev,
19 struct device_node *phy_np, 19 struct device_node *phy_np,
20 void (*hndlr)(struct net_device *), 20 void (*hndlr)(struct net_device *),
21 u32 flags, phy_interface_t iface); 21 u32 flags, phy_interface_t iface);
22struct phy_device *of_phy_attach(struct net_device *dev,
23 struct device_node *phy_np, u32 flags,
24 phy_interface_t iface);
22extern struct phy_device *of_phy_connect_fixed_link(struct net_device *dev, 25extern struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
23 void (*hndlr)(struct net_device *), 26 void (*hndlr)(struct net_device *),
24 phy_interface_t iface); 27 phy_interface_t iface);
@@ -44,6 +47,13 @@ static inline struct phy_device *of_phy_connect(struct net_device *dev,
44 return NULL; 47 return NULL;
45} 48}
46 49
50static inline struct phy_device *of_phy_attach(struct net_device *dev,
51 struct device_node *phy_np,
52 u32 flags, phy_interface_t iface)
53{
54 return NULL;
55}
56
47static inline struct phy_device *of_phy_connect_fixed_link(struct net_device *dev, 57static inline struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
48 void (*hndlr)(struct net_device *), 58 void (*hndlr)(struct net_device *),
49 phy_interface_t iface) 59 phy_interface_t iface)