net: dsa: ksz_common: remove phylink_mac_config from ksz_dev_ops
The phylink_mac_config function pointer member of struct ksz_dev_ops is never initialised, so let's remove it to simplify the code. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/E1s0O7C-009gpk-Dh@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
89de2db193
commit
8433c5833e
@ -3087,9 +3087,6 @@ static void ksz_phylink_mac_config(struct dsa_switch *ds, int port,
|
||||
|
||||
ksz_set_xmii(dev, port, state->interface);
|
||||
|
||||
if (dev->dev_ops->phylink_mac_config)
|
||||
dev->dev_ops->phylink_mac_config(dev, port, mode, state);
|
||||
|
||||
if (dev->dev_ops->setup_rgmii_delay)
|
||||
dev->dev_ops->setup_rgmii_delay(dev, port);
|
||||
}
|
||||
|
@ -349,9 +349,6 @@ struct ksz_dev_ops {
|
||||
int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
|
||||
void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze);
|
||||
void (*port_init_cnt)(struct ksz_device *dev, int port);
|
||||
void (*phylink_mac_config)(struct ksz_device *dev, int port,
|
||||
unsigned int mode,
|
||||
const struct phylink_link_state *state);
|
||||
void (*phylink_mac_link_up)(struct ksz_device *dev, int port,
|
||||
unsigned int mode,
|
||||
phy_interface_t interface,
|
||||
|
Loading…
x
Reference in New Issue
Block a user