Commit 03854d8a authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by David S. Miller
Browse files

net: axienet: replace mdiobus_write() with mdiodev_write()



Commit 0ebecb26 ("net: mdio: Add helper functions for accessing
MDIO devices") added support for mdiodev accessor operations that
neatly wrap the mdiobus accessor operations. Since we are dealing with
a mdio device here, update the driver to use mdiodev_write().

Tested-by: default avatarHarini Katakam <harini.katakam@xilinx.com>
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7a86be6a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1568,8 +1568,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) {