Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netdev/phy: Make get_phy_id() static and quit EXPORTing it.

This function is only referenced from within phy_device.c, so there is
no reason to export it. In fact, we can make it static.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

David Daney and committed by
David S. Miller
82251de2 eb71d0d6

+1 -3
+1 -2
drivers/net/phy/phy_device.c
··· 207 207 * Description: Reads the ID registers of the PHY at @addr on the 208 208 * @bus, stores it in @phy_id and returns zero on success. 209 209 */ 210 - int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id) 210 + static int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id) 211 211 { 212 212 int phy_reg; 213 213 ··· 230 230 231 231 return 0; 232 232 } 233 - EXPORT_SYMBOL(get_phy_id); 234 233 235 234 /** 236 235 * get_phy_device - reads the specified PHY device and returns its @phy_device struct
-1
include/linux/phy.h
··· 480 480 return mdiobus_write(phydev->bus, phydev->addr, regnum, val); 481 481 } 482 482 483 - int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id); 484 483 struct phy_device* get_phy_device(struct mii_bus *bus, int addr); 485 484 int phy_device_register(struct phy_device *phy); 486 485 int phy_init_hw(struct phy_device *phydev);