]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: stmmac: mediatek: stop initialising plat->mac_interface
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 16 Apr 2025 10:26:47 +0000 (11:26 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Apr 2025 01:58:32 +0000 (18:58 -0700)
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>
drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c

index d178d5ddc7c7a4588a9f7321d43071e20fe896b9..39421d6a34e4182a9317911ba5f9c9a14d1093a8 100644 (file)
@@ -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