Skip to content

Commit 5c965ac

Browse files
xry111KexyBiscuit
authored andcommitted
AOSCOS: net/phytmac: Remove unnecessary pcim_iounmap_regions() call
pcim_iounmap_regions() is removed in commit 855c634 ("PCI: Remove pcim_iounmap_regions()"). Moreover, it is not necessary to call it in the driver's remove() function, since it does cleanup automatically on driver detach. Signed-off-by: Xi Ruoyao <[email protected]>
1 parent 4e1f068 commit 5c965ac

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/phytium/phytmac_pci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ static void phytmac_pci_remove(struct pci_dev *pdev)
177177

178178
phytmac_free_pdata(pdata);
179179
bar_mask = pci_select_bars(pdev, IORESOURCE_MEM);
180-
pcim_iounmap_regions(pdev, bar_mask);
181180

182181
pci_disable_device(pdev);
183182
}

0 commit comments

Comments
 (0)