Skip to contentSkip to conversation

ALSA: cs5535audio: suspend/resume callbacks are only defined with CONFIG_PM

PATCH Applied Andres Salomon 1 participant 1 message Nov 5, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 ALSA: cs5535audio: suspend/resume callbacks are only defined with CONFIG_PM

snd_cs5535audio_suspend and snd_cs5535audio_resume are only defined when CONFIG_PM is set; make that clear in the header file.

---
 sound/pci/cs5535audio/cs5535audio.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/pci/cs5535audio/cs5535audio.h +3 -0
index 57e9c65..1aa1e2b 100644
@@ -94,8 +94,11 @@ struct cs5535audio {
 	struct cs5535audio_dma dmas[NUM_CS5535AUDIO_DMAS];
 };
 
+#ifdef CONFIG_PM
 int snd_cs5535audio_suspend(struct pci_dev *pci, pm_message_t state);
 int snd_cs5535audio_resume(struct pci_dev *pci);
+#endif
+
 int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio);
 
 #endif /* __SOUND_CS5535AUDIO_H */
Signature · 1 line
1.5.6.5