From: Arnd Bergmann <arnd@arndb.de>
There are two conflicting patches in net-next, one removed
the at803x_get_features() function and the other added another
user:
drivers/net/phy/at803x.c: In function 'at803x_get_features':
drivers/net/phy/at803x.c:706:14: error: implicit declaration of function 'at803x_match_phy_id' [-Werror=implicit-function-declaration]
Change the new caller over to an open-coded comparison as well.
Fixes: 8887ca5474bd ("net: phy: at803x: simplify custom phy id matching")
Fixes: b856150c8098 ("net: phy: at803x: mask 1000 Base-X link mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/net/phy/at803x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -703,7 +703,7 @@ static int at803x_get_features(struct phy_device *phydev)if(err)returnerr;-if(!at803x_match_phy_id(phydev,ATH8031_PHY_ID))+if(phydev->drv->phy_id!=ATH8031_PHY_ID)return0;/* AR8031/AR8033 have different status registers
From: "Russell King (Oracle)" <linux@armlinux.org.uk> Date: 2021-07-21 15:04:45
Patch already sent by Vladimir, and just applied.
On Wed, Jul 21, 2021 at 05:01:28PM +0200, Arnd Bergmann wrote:
quoted hunk
From: Arnd Bergmann <arnd@arndb.de>
There are two conflicting patches in net-next, one removed
the at803x_get_features() function and the other added another
user:
drivers/net/phy/at803x.c: In function 'at803x_get_features':
drivers/net/phy/at803x.c:706:14: error: implicit declaration of function 'at803x_match_phy_id' [-Werror=implicit-function-declaration]
Change the new caller over to an open-coded comparison as well.
Fixes: 8887ca5474bd ("net: phy: at803x: simplify custom phy id matching")
Fixes: b856150c8098 ("net: phy: at803x: mask 1000 Base-X link mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/net/phy/at803x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -703,7 +703,7 @@ static int at803x_get_features(struct phy_device *phydev)if(err)returnerr;-if(!at803x_match_phy_id(phydev,ATH8031_PHY_ID))+if(phydev->drv->phy_id!=ATH8031_PHY_ID)return0;/* AR8031/AR8033 have different status registers