mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02: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:
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user