Skip to content

Commit 112b338

Browse files
Philipp Stannertiwai
authored andcommitted
ALSA: ali5451: Use pure devres PCI
pci_request_regions() is a hybrid function which becomes managed if pcim_enable_device() was called before. This hybrid nature is deprecated and should not be used anymore. Replace pci_request_regions() with the always-managed function pcim_request_all_regions(). Signed-off-by: Philipp Stanner <phasta@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20250423075346.45907-28-phasta@kernel.org
1 parent 385de12 commit 112b338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/ali5451/ali5451.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ static int snd_ali_resources(struct snd_ali *codec)
19891989
int err;
19901990

19911991
dev_dbg(codec->card->dev, "resources allocation ...\n");
1992-
err = pci_request_regions(codec->pci, "ALI 5451");
1992+
err = pcim_request_all_regions(codec->pci, "ALI 5451");
19931993
if (err < 0)
19941994
return err;
19951995
codec->port = pci_resource_start(codec->pci, 0);

0 commit comments

Comments
 (0)