counter: intel-qep: Replace deprecated PCI functions
Subsystems (3)
PATCH 1/1 counter: intel-qep: Replace deprecated PCI functions
pcim_iomap_regions() and pcim_iomap_table() have been deprecated in commit e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()").
Replace these functions with pcim_iomap_region().
--- drivers/counter/intel-qep.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/counter/intel-qep.c +3 -7
@@ -408,13 +408,9 @@ static int intel_qep_probe(struct pci_dev *pci, const struct pci_device_id *id)pci_set_master (pci); - ret =pcim_iomap_regions (pci,BIT (0 ),pci_name (pci)); -if (ret) -return ret; - - regs =pcim_iomap_table (pci)[0 ]; -if (!regs) -return -ENOMEM ; + regs =pcim_iomap_region (pci,0 ,pci_name (pci)); +if (IS_ERR (regs)) +return PTR_ERR (regs); qep->dev = dev; qep->regs = regs;
Signature · 1 line
2.47.0
Quoted 8 lines · Philipp Stanner
pcim_iomap_regions()andpcim_iomap_table()have been deprecated in commite354bb84a4c1("PCI: Deprecatepcim_iomap_table(),pcim_iomap_regions_request_all()").Replace these functions with
pcim_iomap_region().[...]
Applied, thanks!
[1/1] counter: intel-qep: Replace deprecated PCI functions
commit: 522ae89b78580c62765e160aed3479297baa75be
Best regards,
Signature · 1 line
William Breathitt Gray <[email protected]>
Quoted 22 lines · Philipp Stanner
pcim_iomap_regions()andpcim_iomap_table()have been deprecated in commite354bb84a4c1("PCI: Deprecatepcim_iomap_table(),pcim_iomap_regions_request_all()").Replace these functions with
pcim_iomap_region().Signed-off-by Philipp Stanner <[email protected]>--- drivers/counter/intel-qep.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)drivers/counter/intel-qep.c +0
-3@@ -408,13 +408,9 @@ static int intel_qep_probe(struct pci_dev *pci, const struct pci_device_id *id)pci_set_master (pci); - ret =pcim_iomap_regions (pci,BIT (0 ),pci_name (pci)); -if (ret) -return ret;
drivers/counter/intel-qep.c static int intel_qep_probe(struct pci_dev *pci, const struct pci_device_id *id) · line 416
Quoted 10 lines
drivers/counter/intel-qep.c +3
-4- - regs =pcim_iomap_table (pci)[0 ]; -if (!regs) -return -ENOMEM ; + regs =pcim_iomap_region (pci,0 ,pci_name (pci)); +if (IS_ERR (regs)) +return PTR_ERR (regs); qep->dev = dev; qep->regs = regs;