From: Phil Edworthy Date: Mon, 12 Dec 2016 12:54:15 +0000 (+0000) Subject: net: phy: Marvell: Use phy_interface_is_rgmii helper function X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=24d98cb42473e8842d6f29854cb1b2b4249bcfbd;p=u-boot.git net: phy: Marvell: Use phy_interface_is_rgmii helper function Signed-off-by: Phil Edworthy Reviewed-by: Stefan Roese Acked-by: Joe Hershberger --- diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index e76a14b47a..11aea9a348 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -177,10 +177,7 @@ static int m88e1111s_config(struct phy_device *phydev) { int reg; - if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) || - (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) || - (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) || - (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) { + if (phy_interface_is_rgmii(phydev)) { reg = phy_read(phydev, MDIO_DEVAD_NONE, MIIM_88E1111_PHY_EXT_CR); if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) ||