mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 05:31:37 -04:00
net: stmmac: qcom-ethqos: remove mac_base
In commit 9b443e58a8 ("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>
This commit is contained in:
committed by
Jakub Kicinski
parent
241b91d968
commit
d414ed34a8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user