diff options
author | Phil Edworthy <PHIL.EDWORTHY@renesas.com> | 2016-12-12 12:54:15 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-02-07 10:54:34 -0600 |
commit | 24d98cb42473e8842d6f29854cb1b2b4249bcfbd (patch) | |
tree | 9b5d46da18daa3b839ee4777a30e4a7451564761 /drivers/net/phy/marvell.c | |
parent | 998640b478ab67f30644eef1deda2c035b81dfe7 (diff) | |
download | u-boot-24d98cb42473e8842d6f29854cb1b2b4249bcfbd.zip u-boot-24d98cb42473e8842d6f29854cb1b2b4249bcfbd.tar.gz u-boot-24d98cb42473e8842d6f29854cb1b2b4249bcfbd.tar.bz2 |
net: phy: Marvell: Use phy_interface_is_rgmii helper function
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/phy/marvell.c')
-rw-r--r-- | drivers/net/phy/marvell.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index e76a14b..11aea9a 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) || |