mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ALSA: hda_intel: Replace deprecated PCI functions
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
This commit is contained in:
parent
99b58f6379
commit
0afde802e3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user