Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <andrew@lunn.ch>
Tested-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vl39x-00000006uvc-0A3S@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
d414ed34 241b91d9

-3
-3
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
··· 100 100 struct qcom_ethqos { 101 101 struct platform_device *pdev; 102 102 void __iomem *rgmii_base; 103 - void __iomem *mac_base; 104 103 int (*configure_func)(struct qcom_ethqos *ethqos, int speed); 105 104 106 105 unsigned int link_clk_rate; ··· 770 771 if (IS_ERR(ethqos->rgmii_base)) 771 772 return dev_err_probe(dev, PTR_ERR(ethqos->rgmii_base), 772 773 "Failed to map rgmii resource\n"); 773 - 774 - ethqos->mac_base = stmmac_res.addr; 775 774 776 775 data = of_device_get_match_data(dev); 777 776 ethqos->por = data->por;