Commit 522ae89b authored by Philipp Stanner's avatar Philipp Stanner Committed by William Breathitt Gray
Browse files

counter: intel-qep: Replace deprecated PCI functions



pcim_iomap_regions() and pcim_iomap_table() have been deprecated in
commit e354bb84 ("PCI: Deprecate pcim_iomap_table(),
pcim_iomap_regions_request_all()").

Replace these functions with pcim_iomap_region().

Signed-off-by: default avatarPhilipp Stanner <pstanner@redhat.com>
Link: https://lore.kernel.org/r/20241028091312.17045-2-pstanner@redhat.com


Signed-off-by: default avatarWilliam Breathitt Gray <wbg@kernel.org>
parent a3911e08
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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;