Re: [PATCH v6 5/5] ethernet: cavium: Replace deprecated PCI functions

From: Paolo Abeni
Date: Tue Sep 03 2024 - 10:03:01 EST


On 9/2/24 08:23, Philipp Stanner wrote:
pcim_iomap_regions() and pcim_iomap_table() have been deprecated by
the PCI subsystem in commit e354bb84a4c1 ("PCI: Deprecate
pcim_iomap_table(), pcim_iomap_regions_request_all()").

Furthermore, the driver contains an unneeded call to
pcim_iounmap_regions() in its probe() function's error unwind path.

Replace the deprecated PCI functions with pcim_iomap_region().

Remove the unnecessary call to pcim_iounmap_regions().

Signed-off-by: Philipp Stanner <pstanner@xxxxxxxxxx>

Acked-by: Paolo Abeni <pabeni@xxxxxxxxxx>