diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-06-21 10:37:35 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-23 20:26:41 -0700 |
commit | aa64bc1990b2bf1623986fbe79663ed0e6efc623 (patch) | |
tree | d7858fe9fd57fe605f9c1a83f95eb5dd5f39da4b /drivers/net/dsa/mv88e6xxx/port.c | |
parent | 93817be8b62c7fa1f1bdc3e8c037a73a60026be9 (diff) | |
download | linux-stable-aa64bc1990b2bf1623986fbe79663ed0e6efc623.tar.gz linux-stable-aa64bc1990b2bf1623986fbe79663ed0e6efc623.tar.bz2 linux-stable-aa64bc1990b2bf1623986fbe79663ed0e6efc623.zip |
net: dsa: mv88e6xxx: remove mv88e6065 dead code
Remove mv88e6065_port_set_speed_duplex() - this is never called, and
thus is completely redundant.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/port.c')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/port.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/port.c b/drivers/net/dsa/mv88e6xxx/port.c index 795b3128768f..3cdc985b79e2 100644 --- a/drivers/net/dsa/mv88e6xxx/port.c +++ b/drivers/net/dsa/mv88e6xxx/port.c @@ -294,21 +294,6 @@ static int mv88e6xxx_port_set_speed_duplex(struct mv88e6xxx_chip *chip, return 0; } -/* Support 10, 100, 200 Mbps (e.g. 88E6065 family) */ -int mv88e6065_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port, - int speed, int duplex) -{ - if (speed == SPEED_MAX) - speed = 200; - - if (speed > 200) - return -EOPNOTSUPP; - - /* Setting 200 Mbps on port 0 to 3 selects 100 Mbps */ - return mv88e6xxx_port_set_speed_duplex(chip, port, speed, false, false, - duplex); -} - /* Support 10, 100, 1000 Mbps (e.g. 88E6185 family) */ int mv88e6185_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port, int speed, int duplex) |