public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] misc: cb710: Replace deprecated PCI functions
@ 2025-09-19  8:32 Madhur Kumar
  2025-09-20 16:25 ` Michał Mirosław
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Madhur Kumar @ 2025-09-19  8:32 UTC (permalink / raw)
  To: mirq-linux; +Cc: arnd, gregkh, linux-kernel, Madhur Kumar

pcim_iomap_table() and pcim_iomap_regions() have been deprecated.
Replace them with pcim_iomap_region().

Signed-off-by: Madhur Kumar <madhurkumar004@gmail.com>
---
 drivers/misc/cb710/core.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/misc/cb710/core.c b/drivers/misc/cb710/core.c
index 55b7ee0e8f93..033e9e6d37db 100644
--- a/drivers/misc/cb710/core.c
+++ b/drivers/misc/cb710/core.c
@@ -223,13 +223,12 @@ static int cb710_probe(struct pci_dev *pdev,
 	if (err)
 		return err;
 
-	err = pcim_iomap_regions(pdev, 0x0001, KBUILD_MODNAME);
-	if (err)
-		return err;
 
 	spin_lock_init(&chip->irq_lock);
 	chip->pdev = pdev;
-	chip->iobase = pcim_iomap_table(pdev)[0];
+	chip->iobase = pcim_iomap_region(pdev, 0, KBUILD_MODNAME);
+	if(!chip->iobase)
+		return -ENOMEM;
 
 	pci_set_drvdata(pdev, chip);
 
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-11 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19  8:32 [PATCH] misc: cb710: Replace deprecated PCI functions Madhur Kumar
2025-09-20 16:25 ` Michał Mirosław
2025-10-04 21:53   ` Madhur Kumar
2025-10-05  6:24     ` Greg KH
2025-10-07 12:43 ` Greg KH
2025-10-13 13:28 ` [PATCH v2] " Madhur Kumar
2025-11-11 15:21   ` Philipp Stanner
2025-11-11 15:59     ` Madhur Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox