mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-15 18:57:10 -04:00
net: stmmac: mediatek: stop initialising plat->mac_interface
Mediatek doesn't make use of mac_interface, and none of the in-tree DT files use the mac-mode property. Therefore, mac_interface already follows phy_interface. Remove this unnecessary assignment. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/E1u4zyh-000xVE-PG@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
7c6cd70ffd
commit
01be295b48
@@ -581,7 +581,6 @@ static int mediatek_dwmac_common_data(struct platform_device *pdev,
|
||||
int i;
|
||||
|
||||
priv_plat->phy_mode = plat->phy_interface;
|
||||
plat->mac_interface = priv_plat->phy_mode;
|
||||
if (priv_plat->mac_wol)
|
||||
plat->flags &= ~STMMAC_FLAG_USE_PHY_WOL;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user