ALSA: hda_intel: Replace deprecated PCI functions
authorPhilipp Stanner <phasta@kernel.org>
Fri, 4 Apr 2025 12:19:08 +0000 (14:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Apr 2025 07:19:57 +0000 (09:19 +0200)
pcim_iomap_table() and pcim_iomap_regions() have been deprecated.
Replace them with pcim_iomap_region().

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250404121911.85277-9-phasta@kernel.org
sound/pci/hda/hda_intel.c

index 512fb22f5e5eb9cd9be1156d2f2b388938d3ba0a..9756017930b538ed2e3dac0124618944f6ca7fcc 100644 (file)
@@ -1877,12 +1877,11 @@ static int azx_first_init(struct azx *chip)
                        chip->jackpoll_interval = msecs_to_jiffies(1500);
        }
 
-       err = pcim_iomap_regions(pci, 1 << 0, "ICH HD audio");
-       if (err < 0)
-               return err;
+       bus->remap_addr = pcim_iomap_region(pci, 0, "ICH HD audio");
+       if (IS_ERR(bus->remap_addr))
+               return PTR_ERR(bus->remap_addr);
 
        bus->addr = pci_resource_start(pci, 0);
-       bus->remap_addr = pcim_iomap_table(pci)[0];
 
        if (chip->driver_type == AZX_DRIVER_SKL)
                snd_hdac_bus_parse_capabilities(bus);