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>
This commit is contained in:
parent
93817be8b6
commit
aa64bc1990
@ -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)
|
||||
|
@ -342,8 +342,6 @@ int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link);
|
||||
int mv88e6xxx_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
|
||||
int mv88e6185_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
|
||||
|
||||
int mv88e6065_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port,
|
||||
int speed, int duplex);
|
||||
int mv88e6185_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port,
|
||||
int speed, int duplex);
|
||||
int mv88e6250_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port,
|
||||
|
Loading…
Reference in New Issue
Block a user