aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/phy_device.c3
-rw-r--r--include/linux/phy.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index e8c42d6a7d1c..de86a5582224 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -207,7 +207,7 @@ static struct phy_device* phy_device_create(struct mii_bus *bus,
207 * Description: Reads the ID registers of the PHY at @addr on the 207 * Description: Reads the ID registers of the PHY at @addr on the
208 * @bus, stores it in @phy_id and returns zero on success. 208 * @bus, stores it in @phy_id and returns zero on success.
209 */ 209 */
210int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id) 210static int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id)
211{ 211{
212 int phy_reg; 212 int phy_reg;
213 213
@@ -230,7 +230,6 @@ int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id)
230 230
231 return 0; 231 return 0;
232} 232}
233EXPORT_SYMBOL(get_phy_id);
234 233
235/** 234/**
236 * get_phy_device - reads the specified PHY device and returns its @phy_device struct 235 * get_phy_device - reads the specified PHY device and returns its @phy_device struct
diff --git a/include/linux/phy.h b/include/linux/phy.h
index f092032f1c98..c291cae8ce32 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -480,7 +480,6 @@ static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val)
480 return mdiobus_write(phydev->bus, phydev->addr, regnum, val); 480 return mdiobus_write(phydev->bus, phydev->addr, regnum, val);
481} 481}
482 482
483int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id);
484struct phy_device* get_phy_device(struct mii_bus *bus, int addr); 483struct phy_device* get_phy_device(struct mii_bus *bus, int addr);
485int phy_device_register(struct phy_device *phy); 484int phy_device_register(struct phy_device *phy);
486int phy_init_hw(struct phy_device *phydev); 485int phy_init_hw(struct phy_device *phydev);