diff options
author | 2025-05-22 22:46:23 +0200 | |
---|---|---|
committer | 2025-05-22 22:53:50 +0200 | |
commit | ebaa3bf415e7faaf41f5a440aa00574539f0c2ab (patch) | |
tree | 4b070e27cbd2e8515c7dbe79bd88d447e4b41697 /sound | |
parent | ALSA: atmel: Replace deprecated strcpy() with strscpy() (diff) | |
download | linux-rng-ebaa3bf415e7faaf41f5a440aa00574539f0c2ab.tar.xz linux-rng-ebaa3bf415e7faaf41f5a440aa00574539f0c2ab.zip |
ALSA: hda: acpi: Use SYSTEM_SLEEP_PM_OPS()
The dev_pm_ops definition must be SYSTEM_SLEEP_PM_OPS() instead of
SET_SYSTEM_SLEEP_PM_OPS(); otherwise it leads compile warnings without
CONFIG_PM_SLEEP. The latest patch version I took was back to an old
macro (likely mistakenly), and I overlooked it at applying. Fix it
now.
Fixes: 4b214c9bbe26 ("ALSA: hda - Add new driver for HDA controllers listed via ACPI")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/20250522203020.1478369-1-rdunlap@infradead.org
Link: https://patch.msgid.link/20250522204624.1757-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_acpi.c b/sound/pci/hda/hda_acpi.c index c90865ca876e..513f8fde198b 100644 --- a/sound/pci/hda/hda_acpi.c +++ b/sound/pci/hda/hda_acpi.c @@ -293,7 +293,7 @@ static int hda_acpi_resume(struct device *dev) } static const struct dev_pm_ops hda_acpi_pm = { - SET_SYSTEM_SLEEP_PM_OPS(hda_acpi_suspend, hda_acpi_resume) + SYSTEM_SLEEP_PM_OPS(hda_acpi_suspend, hda_acpi_resume) }; struct hda_data nvidia_hda_data = { |