mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01: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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
73350c3852
commit
b91c13534a
1 file changed
+3
-5
@@ -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