summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_axienet_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index b2a6e1e47bcc..d0f1870cc426 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -1534,8 +1534,7 @@ static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
int ret;
if (lp->switch_x_sgmii) {
- ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr,
- XLNX_MII_STD_SELECT_REG,
+ ret = mdiodev_write(pcs_phy, XLNX_MII_STD_SELECT_REG,
interface == PHY_INTERFACE_MODE_SGMII ?
XLNX_MII_STD_SELECT_SGMII : 0);
if (ret < 0) {