mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
73350c3852
commit
b91c13534a
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user