net: phy: export genphy_config_init()
authorDaniel Mack <zonque@gmail.com>
Wed, 16 Apr 2014 15:19:12 +0000 (17:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Apr 2014 22:18:54 +0000 (18:18 -0400)
This enables other drivers to call this generic implementation, and then
only do specific details on top of it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h

index 0ce606624296a80492b18d89a27634614aad5497..466ae3e063220179580c48d351ceaa0eac5ee615 100644 (file)
@@ -1067,7 +1067,7 @@ int genphy_soft_reset(struct phy_device *phydev)
 }
 EXPORT_SYMBOL(genphy_soft_reset);
 
-static int genphy_config_init(struct phy_device *phydev)
+int genphy_config_init(struct phy_device *phydev)
 {
        int val;
        u32 features;
@@ -1118,6 +1118,7 @@ static int gen10g_soft_reset(struct phy_device *phydev)
        /* Do nothing for now */
        return 0;
 }
+EXPORT_SYMBOL(genphy_config_init);
 
 static int gen10g_config_init(struct phy_device *phydev)
 {
index 4d0221fd0688df5d572072d8b9f871a5637ff460..51d15f684e7e0b0259b2183c83097ec77baf541e 100644 (file)
@@ -666,6 +666,7 @@ static inline int phy_read_status(struct phy_device *phydev)
        return phydev->drv->read_status(phydev);
 }
 
+int genphy_config_init(struct phy_device *phydev);
 int genphy_setup_forced(struct phy_device *phydev);
 int genphy_restart_aneg(struct phy_device *phydev);
 int genphy_config_aneg(struct phy_device *phydev);
This page took 0.029095 seconds and 5 git commands to generate.