Skip to content

Commit a5fee7b

Browse files
committed
stmmac: intel: Simplify intel_eth_pci_remove()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122226 commit 1621e70 Author: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Date: Fri, 2 Sep 2022 18:26:56 +0200 There is no point to call pcim_iounmap_regions() in the remove function, this frees a managed resource that would be release by the framework anyway. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Mark Salter <msalter@redhat.com>
1 parent f035cca commit a5fee7b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,8 +1138,6 @@ static void intel_eth_pci_remove(struct pci_dev *pdev)
11381138

11391139
clk_disable_unprepare(priv->plat->stmmac_clk);
11401140
clk_unregister_fixed_rate(priv->plat->stmmac_clk);
1141-
1142-
pcim_iounmap_regions(pdev, BIT(0));
11431141
}
11441142

11451143
static int __maybe_unused intel_eth_pci_suspend(struct device *dev)

0 commit comments

Comments
 (0)