Messages in this thread Patch in this message | | | From | Dongliang Mu <> | Subject | [PATCH 1/3] ipack: tpci200: pci_iounmap -> iounmap | Date | Wed, 21 Jul 2021 19:11:30 +0800 |
| |
The deallocation api for ioremap should be iounmap, other than pci_iounmap.
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> --- drivers/ipack/carriers/tpci200.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ipack/carriers/tpci200.c b/drivers/ipack/carriers/tpci200.c index 3461b0a7dc62..ca302a87bc22 100644 --- a/drivers/ipack/carriers/tpci200.c +++ b/drivers/ipack/carriers/tpci200.c @@ -88,8 +88,8 @@ static void tpci200_unregister(struct tpci200_board *tpci200) { free_irq(tpci200->info->pdev->irq, (void *) tpci200); - pci_iounmap(tpci200->info->pdev, tpci200->info->interface_regs); - pci_iounmap(tpci200->info->pdev, tpci200->info->cfg_regs); + iounmap(tpci200->info->interface_regs); + iounmap(tpci200->info->cfg_regs); pci_release_region(tpci200->info->pdev, TPCI200_IP_INTERFACE_BAR); pci_release_region(tpci200->info->pdev, TPCI200_IO_ID_INT_SPACES_BAR); -- 2.25.1
| |