panic: add sysctl to dump all CPUs backtraces on oops event
[sfrench/cifs-2.6.git] / include / linux / of_mdio.h
index 491a2b7e77c1e90645180c13cdb34694f94d1196..0f61a4ac6bcfba7afe77b4010246115485c23c20 100644 (file)
@@ -30,7 +30,9 @@ extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
 extern int of_phy_register_fixed_link(struct device_node *np);
 extern void of_phy_deregister_fixed_link(struct device_node *np);
 extern bool of_phy_is_fixed_link(struct device_node *np);
-
+extern int of_mdiobus_phy_device_register(struct mii_bus *mdio,
+                                    struct phy_device *phy,
+                                    struct device_node *child, u32 addr);
 
 static inline int of_mdio_parse_addr(struct device *dev,
                                     const struct device_node *np)
@@ -118,6 +120,13 @@ static inline bool of_phy_is_fixed_link(struct device_node *np)
 {
        return false;
 }
+
+static inline int of_mdiobus_phy_device_register(struct mii_bus *mdio,
+                                           struct phy_device *phy,
+                                           struct device_node *child, u32 addr)
+{
+       return -ENOSYS;
+}
 #endif