diff options
author | Johann Felix Soden <johfel@users.sourceforge.net> | 2008-05-02 11:54:31 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-05-05 16:12:07 +0400 |
commit | 983e0972cea450fe5725d1ba11c78adfd5d7ad3a (patch) | |
tree | 8d47edc4f869c526386c7db03c4fb05fbc20d36f /sound/drivers/pcsp | |
parent | f74d505b58d36ceeef10e459094f0eb760681165 (diff) | |
download | linux-983e0972cea450fe5725d1ba11c78adfd5d7ad3a.tar.xz |
[ALSA] pcsp: Fix build with CONFIG_PM=n
sound/drivers/pcsp/pcsp.c: In function 'pcsp_suspend':
sound/drivers/pcsp/pcsp.c:201: error: implicit declaration of function 'snd_pcm_suspend_all'
Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
CC: Stas Sergeev <stsp@aknet.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/pcsp')
-rw-r--r-- | sound/drivers/pcsp/pcsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index 59203511e77d..54a1f9036c66 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c @@ -194,6 +194,7 @@ static void pcsp_stop_beep(struct snd_pcsp *chip) spin_unlock_irq(&chip->substream_lock); } +#ifdef CONFIG_PM static int pcsp_suspend(struct platform_device *dev, pm_message_t state) { struct snd_pcsp *chip = platform_get_drvdata(dev); @@ -201,6 +202,9 @@ static int pcsp_suspend(struct platform_device *dev, pm_message_t state) snd_pcm_suspend_all(chip->pcm); return 0; } +#else +#define pcsp_suspend NULL +#endif /* CONFIG_PM */ static void pcsp_shutdown(struct platform_device *dev) { |