Skip to content

Commit 0e5bb36

Browse files
committed
net: phy: as21xx: fix phy detection
phy-id: 75009410
1 parent c314f3a commit 0e5bb36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/as21xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ static int as21xxx_match_phy_device(struct phy_device *phydev,
12441244
{
12451245
u32 phy_id = aeon_read_pid(phydev);
12461246
/* AEONSEMI get pid. */
1247-
if (phydev->phy_id != PHY_ID_AS21XXX)
1247+
if (phy_id != PHY_ID_AS21XXX)
12481248
return 0;
12491249

12501250
phydev_err(phydev, "%s:%d phy_id:%08x\n",__func__,__LINE__,phy_id);

0 commit comments

Comments
 (0)