diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-11 13:55:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-11 22:53:41 +0300 |
commit | a4516c7053b96fed98a0439a9226983b5275474b (patch) | |
tree | ac7628792fbd69eb7b5645f7fc9bf5c239ecd05b /drivers/net/phy/marvell10g.c | |
parent | fa2de660a8d001fdce6209534b60b85b87cda84f (diff) | |
download | linux-a4516c7053b96fed98a0439a9226983b5275474b.tar.xz |
net: sfp: derive interface mode from ethtool link modes
We don't need the EEPROM ID to derive the phy interface mode as we can
derive it merely from the ethtool link modes. Remove the EEPROM ID
argument to sfp_select_interface().
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell10g.c')
-rw-r--r-- | drivers/net/phy/marvell10g.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index 1bf13017d288..512f27b0b5cd 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -214,7 +214,7 @@ static int mv3310_sfp_insert(void *upstream, const struct sfp_eeprom_id *id) phy_interface_t iface; sfp_parse_support(phydev->sfp_bus, id, support); - iface = sfp_select_interface(phydev->sfp_bus, id, support); + iface = sfp_select_interface(phydev->sfp_bus, support); if (iface != PHY_INTERFACE_MODE_10GKR) { dev_err(&phydev->mdio.dev, "incompatible SFP module inserted\n"); |