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 <madhurkumar004@gmail.com>
Link: https://patch.msgid.link/20251013132833.1783880-1-madhurkumar004@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/1354/merge
Madhur Kumar 2025-10-13 18:58:33 +05:30 committed by Greg Kroah-Hartman
parent 73350c3852
commit b91c13534a
1 changed files with 3 additions and 5 deletions

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);