mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
net: stmmac: remove mac->xlgmac
mac->xlgmac is only ever written to by the dwxlgmac2_quirk() function. Remove mac->xlgmac, and the quirk function that then becomes redundant. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1vvuXY-0000000AvnF-2ccv@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
0e7cb34d0f
commit
70bafb53b3
|
|
@ -635,7 +635,6 @@ struct mac_device_info {
|
|||
unsigned int mcast_bits_log2;
|
||||
unsigned int rx_csum;
|
||||
unsigned int pcs;
|
||||
unsigned int xlgmac;
|
||||
unsigned int num_vlan;
|
||||
u32 vlan_filter[32];
|
||||
bool vlan_fail_q_en;
|
||||
|
|
|
|||
|
|
@ -97,12 +97,6 @@ static int stmmac_dwmac4_quirks(struct stmmac_priv *priv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int stmmac_dwxlgmac_quirks(struct stmmac_priv *priv)
|
||||
{
|
||||
priv->hw->xlgmac = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int stmmac_reset(struct stmmac_priv *priv)
|
||||
{
|
||||
struct plat_stmmacenet_data *plat = priv->plat;
|
||||
|
|
@ -293,7 +287,6 @@ static const struct stmmac_hwif_entry {
|
|||
.mmc = &dwxgmac_mmc_ops,
|
||||
.est = &dwmac510_est_ops,
|
||||
.setup = dwxlgmac2_setup,
|
||||
.quirks = stmmac_dwxlgmac_quirks,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user