net: phy: microchip_t1: Don't set .config_aneg
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 9 Nov 2020 01:16:05 +0000 (09:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 01:41:17 +0000 (17:41 -0800)
The .config_aneg in microchip_t1 is genphy_config_aneg, so it's not
needed, because the phy core will call genphy_config_aneg() if the
.config_aneg is NULL.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201109091605.3951c969@xhacker.debian
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/microchip_t1.c

index fed3e395f18e1c42bd81a5ef6537c18d8782f2ca..1c990016261954f42db5867d4869209baaca6455 100644 (file)
@@ -219,7 +219,6 @@ static struct phy_driver microchip_t1_phy_driver[] = {
                .features       = PHY_BASIC_T1_FEATURES,
 
                .config_init    = lan87xx_config_init,
-               .config_aneg    = genphy_config_aneg,
 
                .ack_interrupt  = lan87xx_phy_ack_interrupt,
                .config_intr    = lan87xx_phy_config_intr,