diff options
Diffstat (limited to 'include/linux/of_mdio.h')
-rw-r--r-- | include/linux/of_mdio.h | 10 |
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); |
22 | struct phy_device *of_phy_attach(struct net_device *dev, | ||
23 | struct device_node *phy_np, u32 flags, | ||
24 | phy_interface_t iface); | ||
22 | extern struct phy_device *of_phy_connect_fixed_link(struct net_device *dev, | 25 | extern 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 | ||
50 | static 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 | |||
47 | static inline struct phy_device *of_phy_connect_fixed_link(struct net_device *dev, | 57 | static 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) |