]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: Replace deprecated PCI functions
authorPhilipp Stanner <pstanner@redhat.com>
Mon, 11 Nov 2024 09:09:45 +0000 (10:09 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Wed, 18 Dec 2024 10:12:05 +0000 (11:12 +0100)
commit10435e0d2377e5fc0353ba9948aa47b9c029ca7b
tree2d9e20844246bf2594b4cdd42814683003c12d16
parentedc19bd0e571c732cd01c8da62f904e6d2a29a48
pwm: Replace deprecated PCI functions

pcim_iomap_table() and pcim_request_regions() have been deprecated in
commit e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(),
pcim_iomap_regions_request_all()") and commit d140f80f60358 ("PCI:
Deprecate pcim_iomap_regions() in favor of pcim_iomap_region()").

Replace these functions with pcim_iomap_region().

Additionally, pass the actual driver names to pcim_iomap_region()
instead of the previous pci_name(), since the 'name' parameter should
always reflect which driver owns a region.

Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Link: https://lore.kernel.org/r/20241111090944.11293-2-pstanner@redhat.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-dwc.c
drivers/pwm/pwm-lpss-pci.c