diff options
Diffstat (limited to 'kernel/drivers/net/phy/icplus.c')
-rw-r--r-- | kernel/drivers/net/phy/icplus.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/drivers/net/phy/icplus.c b/kernel/drivers/net/phy/icplus.c index 8644f039d..0dbc445a5 100644 --- a/kernel/drivers/net/phy/icplus.c +++ b/kernel/drivers/net/phy/icplus.c @@ -139,10 +139,7 @@ static int ip1001_config_init(struct phy_device *phydev) if (c < 0) return c; - 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)) { c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS); if (c < 0) |