Skip to contentSkip to conversation

net: phy: realtek: fix double page ops in generic Realtek driver

PATCH Applied Heiner Kallweit 2 participants 2 messages May 11, 2019

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: realtek: fix double page ops in generic Realtek driver

When adding missing callbacks I missed that one had them set already. Interesting that the compiler didn't complain.

Fixes daf3ddbe11a2 ("net: phy: realtek: add missing page operations")
---
 drivers/net/phy/realtek.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/phy/realtek.c +0 -2
index 29ce07312..4988ccea6 100644
@@ -332,8 +332,6 @@ static struct phy_driver realtek_drvs[] = {
 		.resume		= genphy_resume,
 		.read_page	= rtl821x_read_page,
 		.write_page	= rtl821x_write_page,
-		.read_page	= rtl821x_read_page,
-		.write_page	= rtl821x_write_page,
 	}, {
 		PHY_ID_MATCH_EXACT(0x001cc961),
 		.name		= "RTL8366RB Gigabit Ethernet",
Signature · 1 line
2.21.0
maintainer Applied
#1 lore raw

From: Heiner Kallweit <[email protected]>
Date: Sat, 11 May 2019 07:44:48 +0200

Quoted 5 lines

When adding missing callbacks I missed that one had them set already. Interesting that the compiler didn't complain.

Fixes daf3ddbe11a2 ("net: phy: realtek: add missing page operations")

Applied.