[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210721111137.1523229-1-mudongliangabcd@gmail.com>
Date: Wed, 21 Jul 2021 19:11:30 +0800
From: Dongliang Mu <mudongliangabcd@...il.com>
To: Samuel Iglesias Gonsalvez <siglesias@...lia.com>,
Jens Taprogge <jens.taprogge@...rogge.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dongliang Mu <mudongliangabcd@...il.com>,
Aditya Srivastava <yashsri421@...il.com>,
Lv Yunlong <lyl2019@...l.ustc.edu.cn>
Cc: Randy Dunlap <rdunlap@...radead.org>,
industrypack-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] ipack: tpci200: pci_iounmap -> iounmap
The deallocation api for ioremap should be iounmap, other than
pci_iounmap.
Signed-off-by: Dongliang Mu <mudongliangabcd@...il.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
Powered by blists - more mailing lists