Commit ee3d1f09 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: oxygen: Fix dependency on CONFIG_PM_SLEEP



The conversion to EXPORT_SIMPLE_DEV_PM_OPS() also replaced the pm ops
assignment with pm_ptr() macro, but this made difference from the
original code; it  had conditional with ifdef CONFIG_PM_SLEEP, while
we have now with CONFIG_PM, instead.  This seems causing build errors
with randomconfig.

For fixing the inconsistency, replace pm_ptr() with pm_sleep_ptr().

Fixes: 5ea0a220 ("ALSA: oxygen: Convert to EXPORT_SIMPLE_DEV_PM_OPS()")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503201853.7kB0BPRw-lkp@intel.com/
Link: https://patch.msgid.link/20250320105721.10789-1-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 765fee28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -855,7 +855,7 @@ static struct pci_driver oxygen_driver = {
	.id_table = oxygen_ids,
	.probe = generic_oxygen_probe,
	.driver = {
		.pm = pm_ptr(&oxygen_pci_pm),
		.pm = pm_sleep_ptr(&oxygen_pci_pm),
	},
};

+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ static struct pci_driver se6x_driver = {
	.id_table = se6x_ids,
	.probe = se6x_probe,
	.driver = {
		.pm = pm_ptr(&oxygen_pci_pm),
		.pm = pm_sleep_ptr(&oxygen_pci_pm),
	},
	.shutdown = oxygen_pci_shutdown,
};
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static struct pci_driver xonar_driver = {
	.id_table = xonar_ids,
	.probe = xonar_probe,
	.driver = {
		.pm = pm_ptr(&oxygen_pci_pm),
		.pm = pm_sleep_ptr(&oxygen_pci_pm),
	},
	.shutdown = oxygen_pci_shutdown,
};