diff options
author | Shengzhou Liu <Shengzhou.Liu@freescale.com> | 2015-04-07 10:46:32 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-04-20 22:57:13 (GMT) |
commit | 5707d5ffd42a45088f433a2514d1320a6491697b (patch) | |
tree | 2340b8de0b59f2286df20701951c289cf69da1a7 /drivers/net | |
parent | c6a40f6e518c4fb900ec6a46a7fc1d1d354beb3a (diff) | |
download | u-boot-5707d5ffd42a45088f433a2514d1320a6491697b.tar.xz |
net/phy: fixup for get_phy_id
commit 3c6928fd7b0f84 "net: phy: fix warnings with W=1" caused
some PHYs(e.g. CS4315/CS4340) not working. This patch fixes the
warning and make those special PHYs working as well.
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 9d88afe..f5221a3 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -582,7 +582,7 @@ static struct phy_device *phy_device_create(struct mii_dev *bus, int addr, * Description: Reads the ID registers of the PHY at @addr on the * @bus, stores it in @phy_id and returns zero on success. */ -static int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) +int __weak get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) { int phy_reg; |