Instead of accessing mdio_ops directly use phy_read/write in these helpers.
Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- drivers/net/ethernet/realtek/r8168.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8168.c b/drivers/net/ethernet/realtek/r8168.c index 91191d178..64c87509d 100644 --- a/drivers/net/ethernet/realtek/r8168.c +++ b/drivers/net/ethernet/realtek/r8168.c @@ -1167,12 +1167,12 @@ static int r8168dp_2_mdio_read(struct rtl8168_private *tp, int reg) static void rtl_writephy(struct rtl8168_private *tp, int location, u32 val) { - tp->mdio_ops.write(tp, location, val); + phy_write(tp->dev->phydev, location, val); } static int rtl_readphy(struct rtl8168_private *tp, int location) { - return tp->mdio_ops.read(tp, location); + return phy_read(tp->dev->phydev, location); } static void rtl_patchphy(struct rtl8168_private *tp, int reg_addr, int value) -- 2.15.1