misc: cb710: Replace deprecated PCI functions

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

Signed-off-by: Madhur Kumar <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Madhur Kumar authored and Greg Kroah-Hartman committed 2025-10-22 07:55:22 +02:00
1 parent 73350c3852
commit b91c13534a
1 file changed
+3 -5
+3 -5
View File
@@ -223,13 +223,11 @@ 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);