mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 09:33:31 +02:00
ALSA: aw2: 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-6-phasta@kernel.org
This commit is contained in:
parent
413557a64d
commit
b52fab377c
|
|
@ -225,11 +225,10 @@ static int snd_aw2_create(struct snd_card *card,
|
|||
chip->irq = -1;
|
||||
|
||||
/* (1) PCI resource allocation */
|
||||
err = pcim_iomap_regions(pci, 1 << 0, "Audiowerk2");
|
||||
if (err < 0)
|
||||
return err;
|
||||
chip->iobase_virt = pcim_iomap_region(pci, 0, "Audiowerk2");
|
||||
if (IS_ERR(chip->iobase_virt))
|
||||
return PTR_ERR(chip->iobase_virt);
|
||||
chip->iobase_phys = pci_resource_start(pci, 0);
|
||||
chip->iobase_virt = pcim_iomap_table(pci)[0];
|
||||
|
||||
/* (2) initialization of the chip hardware */
|
||||
snd_aw2_saa7146_setup(&chip->saa7146, chip->iobase_virt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user