]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
phy: export genphy_parse_link()
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 28 Nov 2012 10:15:17 +0000 (11:15 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 25 Jun 2013 00:07:32 +0000 (19:07 -0500)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
drivers/net/phy/phy.c
include/phy.h

index f8c54814777882e83d17e8ad22b69abcd047f42f..8f4c0c6bc55fc07784c07480a0588b173c4146fc 100644 (file)
@@ -280,7 +280,7 @@ int genphy_update_link(struct phy_device *phydev)
  *
  * Stolen from Linux's mii.c and phy_device.c
  */
-static int genphy_parse_link(struct phy_device *phydev)
+int genphy_parse_link(struct phy_device *phydev)
 {
        int mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
 
index 75bf3b4728d62f8c8308b3fa642306d80145471f..dbf32740bb3c252c8090b507f1f8717089825895 100644 (file)
@@ -214,6 +214,7 @@ int phy_register(struct phy_driver *drv);
 int genphy_config_aneg(struct phy_device *phydev);
 int genphy_restart_aneg(struct phy_device *phydev);
 int genphy_update_link(struct phy_device *phydev);
+int genphy_parse_link(struct phy_device *phydev);
 int genphy_config(struct phy_device *phydev);
 int genphy_startup(struct phy_device *phydev);
 int genphy_shutdown(struct phy_device *phydev);