diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2023-11-27 15:51:01 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-11-29 08:38:34 -0800 |
commit | 71cd5ce7e2f390de105b118a330ffe40a3417bdc (patch) | |
tree | 0b7699cf9892aff504141bd48f4fcd28314f493c | |
parent | 2f58148c41e23e11f16e79308455d82ab9342607 (diff) | |
download | linux-71cd5ce7e2f390de105b118a330ffe40a3417bdc.tar.gz linux-71cd5ce7e2f390de105b118a330ffe40a3417bdc.tar.bz2 linux-71cd5ce7e2f390de105b118a330ffe40a3417bdc.zip |
net: dsa: microchip: make phylink_mac_link_up() not optional
Last part of the driver do now support phylink_mac_link_up(). So, make it
not optional.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20231127145101.3039399-4-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 3b1fe9aff6a8..9545aed905f5 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -3113,10 +3113,8 @@ static void ksz_phylink_mac_link_up(struct dsa_switch *ds, int port, { struct ksz_device *dev = ds->priv; - if (dev->dev_ops->phylink_mac_link_up) - dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface, - phydev, speed, duplex, - tx_pause, rx_pause); + dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface, phydev, + speed, duplex, tx_pause, rx_pause); } static int ksz_switch_detect(struct ksz_device *dev) |