diff options
author | Yegor Yefremov <yegorslists@googlemail.com> | 2012-11-28 14:15:17 +0400 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2013-06-25 04:07:32 +0400 |
commit | e2043f5c272d14a0e0acd81382f17cfc883136d6 (patch) | |
tree | 080ed9ce6f6a6cdaf74c6f2728ccd0febd3ddc56 | |
parent | 518ce472f7b89284454cf5a7107837e995a5caf9 (diff) | |
download | u-boot-e2043f5c272d14a0e0acd81382f17cfc883136d6.tar.xz |
phy: export genphy_parse_link()
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
-rw-r--r-- | drivers/net/phy/phy.c | 2 | ||||
-rw-r--r-- | include/phy.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index f8c5481477..8f4c0c6bc5 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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); diff --git a/include/phy.h b/include/phy.h index 75bf3b4728..dbf32740bb 100644 --- a/include/phy.h +++ b/include/phy.h @@ -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); |