Commit b91c1353 authored by Madhur Kumar's avatar Madhur Kumar Committed by Greg Kroah-Hartman
Browse files

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: default avatarMadhur Kumar <madhurkumar004@gmail.com>
Link: https://patch.msgid.link/20251013132833.1783880-1-madhurkumar004@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 73350c38
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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);