Commit 7ccbde57 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix possible compile warnings regarding CONFIG_PM

Replace with a proper ifdef check of CONFIG_PM_SLEEP in hda_intel.c.
But other places in HD-audio driver are still marked with CONFIG_PM,
since these can be called for power-saving even without
CONFIG_PM_SLEEP.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 61525979
...@@ -2409,11 +2409,10 @@ static void azx_power_notify(struct hda_bus *bus) ...@@ -2409,11 +2409,10 @@ static void azx_power_notify(struct hda_bus *bus)
} }
#endif /* CONFIG_SND_HDA_POWER_SAVE */ #endif /* CONFIG_SND_HDA_POWER_SAVE */
#ifdef CONFIG_PM #if defined(CONFIG_PM_SLEEP) || defined(SUPPORT_VGA_SWITCHEROO)
/* /*
* power management * power management
*/ */
static int azx_suspend(struct device *dev) static int azx_suspend(struct device *dev)
{ {
struct pci_dev *pci = to_pci_dev(dev); struct pci_dev *pci = to_pci_dev(dev);
...@@ -2471,10 +2470,8 @@ static int azx_resume(struct device *dev) ...@@ -2471,10 +2470,8 @@ static int azx_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(azx_pm, azx_suspend, azx_resume); static SIMPLE_DEV_PM_OPS(azx_pm, azx_suspend, azx_resume);
#define AZX_PM_OPS &azx_pm #define AZX_PM_OPS &azx_pm
#else #else
#define azx_suspend(dev)
#define azx_resume(dev)
#define AZX_PM_OPS NULL #define AZX_PM_OPS NULL
#endif /* CONFIG_PM */ #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment