media: tw5864: Replace deprecated PCI functions
authorPhilipp Stanner <phasta@kernel.org>
Fri, 4 Apr 2025 13:53:45 +0000 (15:53 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Apr 2025 13:14:31 +0000 (15:14 +0200)
commitf8a1082ecb5d6e6a8c4ee2b0d465b16c1f8e735c
tree37db5ae89f3859d44a6eef64eca463f36d4f892f
parentbd2ad1a08a4c65cbb4dbf30c553a57be8439df5d
media: tw5864: Replace deprecated PCI functions

pcim_iomap_table() and pcim_iomap_regions() have been deprecated.
pcim_iomap_regions(), furthermore, has so far wrongly been passed the
device's name instead of the driver's name, which makes that function's
debug prints useless.

Replace the deprecated function with pcim_iomap_region().

Define the driver name globally and use it where appropriate.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/pci/tw5864/tw5864-core.c