Skip to content

Commit 889dbe6

Browse files
Philipp Stannertiwai
authored andcommitted
ALSA: maestro3: 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-29-phasta@kernel.org
1 parent 112b338 commit 889dbe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/maestro3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci,
25522552
if (err < 0)
25532553
return err;
25542554

2555-
err = pci_request_regions(pci, card->driver);
2555+
err = pcim_request_all_regions(pci, card->driver);
25562556
if (err < 0)
25572557
return err;
25582558

0 commit comments

Comments
 (0)