]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ptp_pch: Replace deprecated PCI functions
authorPhilipp Stanner <pstanner@redhat.com>
Mon, 28 Oct 2024 09:59:44 +0000 (10:59 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 1 Nov 2024 01:53:35 +0000 (18:53 -0700)
commit9c5649c17737c430537878a6bd97399555f7a920
tree253b961b3380d6c3b183bd198a4d165ca37b42d6
parentf611cc38925bec1bf530fd03c1e57b21ca82c4d8
ptp_pch: 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().

Additionally, pass KBUILD_MODNAME to that function, since the 'name'
parameter should indicate who (i.e., which driver) has requested the
resource.

Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Link: https://patch.msgid.link/20241028095943.20498-2-pstanner@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_pch.c