net: stmmac: qcom-ethqos: remove mac_base
Subsystems (6)
PATCH 1/1 net: stmmac: qcom-ethqos: remove mac_base
In commit 9b443e58a896 ("net: stmmac: qcom-ethqos: remove MAC_CTRL_REG modification"), ethqos->mac_base is only written, never read. Let's remove it.
Reviewed-by Andrew Lunn <[email protected]>
Tested-by Mohd Ayaan Anwar <[email protected]>
Signed-off-by Russell King (Oracle) <[email protected]>
--- drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +0 -3
@@ -100,7 +100,6 @@ struct ethqos_emac_driver_data {struct qcom_ethqos {struct platform_device *pdev;void __iomem *rgmii_base; -void __iomem *mac_base;int (*configure_func)(struct qcom_ethqos *ethqos,int speed);unsigned int link_clk_rate;
@@ -772,8 +771,6 @@ static int qcom_ethqos_probe(struct platform_device *pdev)return dev_err_probe (dev,PTR_ERR (ethqos->rgmii_base),"Failed to map rgmii resource\n" ); - ethqos->mac_base = stmmac_res.addr; - data =of_device_get_match_data (dev); ethqos->por = data->por; ethqos->num_por = data->num_por;
Signature · 1 line
2.47.3
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 28 Jan 2026 10:52:29 +0000 you wrote:
In commit
9b443e58a896("net: stmmac: qcom-ethqos: removeMAC_CTRL_REGmodification"),ethqos->mac_baseis only written, never read. Let's remove it.Reviewed-by Andrew Lunn <[email protected]>Tested-by Mohd Ayaan Anwar <[email protected]>Signed-off-by Russell King (Oracle) <[email protected]>[...]
Here is the summary with links:
- [net-next] net: stmmac: qcom-ethqos: remove mac_base
https://git.kernel.org/netdev/net-next/c/d414ed34a861
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html