mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
ALSA: ad1889: 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-3-phasta@kernel.org
This commit is contained in:
parent
120305ab90
commit
a99ccde94b
|
|
@ -810,12 +810,11 @@ snd_ad1889_create(struct snd_card *card, struct pci_dev *pci)
|
|||
chip->irq = -1;
|
||||
|
||||
/* (1) PCI resource allocation */
|
||||
err = pcim_iomap_regions(pci, 1 << 0, card->driver);
|
||||
if (err < 0)
|
||||
return err;
|
||||
chip->iobase = pcim_iomap_region(pci, 0, card->driver);
|
||||
if (IS_ERR(chip->iobase))
|
||||
return PTR_ERR(chip->iobase);
|
||||
|
||||
chip->bar = pci_resource_start(pci, 0);
|
||||
chip->iobase = pcim_iomap_table(pci)[0];
|
||||
|
||||
pci_set_master(pci);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user