summaryrefslogtreecommitdiff
path: root/drivers/counter
diff options
context:
space:
mode:
authorPhilipp Stanner <pstanner@redhat.com>2024-10-28 10:13:13 +0100
committerWilliam Breathitt Gray <wbg@kernel.org>2024-11-01 15:00:31 +0900
commit522ae89b78580c62765e160aed3479297baa75be (patch)
treed8adf217028a1b43dc39f3172b958797d3659e5a /drivers/counter
parenta3911e087d6237f5225bb41bb7d5052c33a794b1 (diff)
downloadlwn-522ae89b78580c62765e160aed3479297baa75be.tar.gz
lwn-522ae89b78580c62765e160aed3479297baa75be.zip
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(). Signed-off-by: Philipp Stanner <pstanner@redhat.com> Link: https://lore.kernel.org/r/20241028091312.17045-2-pstanner@redhat.com Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/intel-qep.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/counter/intel-qep.c b/drivers/counter/intel-qep.c
index af5942e66f7d..ee2bae27b728 100644
--- a/drivers/counter/intel-qep.c
+++ b/drivers/counter/intel-qep.c
@@ -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;