Skip to content

Commit 71cd5ce

Browse files
oleremkuba-moo
authored andcommitted
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>
1 parent 2f58148 commit 71cd5ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/dsa/microchip/ksz_common.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,10 +3113,8 @@ static void ksz_phylink_mac_link_up(struct dsa_switch *ds, int port,
31133113
{
31143114
struct ksz_device *dev = ds->priv;
31153115

3116-
if (dev->dev_ops->phylink_mac_link_up)
3117-
dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface,
3118-
phydev, speed, duplex,
3119-
tx_pause, rx_pause);
3116+
dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface, phydev,
3117+
speed, duplex, tx_pause, rx_pause);
31203118
}
31213119

31223120
static int ksz_switch_detect(struct ksz_device *dev)

0 commit comments

Comments
 (0)