aboutsummaryrefslogtreecommitdiffstats
path: root/sound/atmel/abdac.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-09 15:47:15 +0200
committerTakashi Iwai <tiwai@suse.de>2012-08-09 15:47:15 +0200
commitd34e4e00adbbc91ff9fc96ed9a4e4b65161868da (patch)
tree83db080b68eedf7b4fcc79b94358c2f884e0fdae /sound/atmel/abdac.c
parentALSA: hda - Fix pop noise in headphones on S3 for Asus X55A, X55V (diff)
downloadlinux-dev-d34e4e00adbbc91ff9fc96ed9a4e4b65161868da.tar.xz
linux-dev-d34e4e00adbbc91ff9fc96ed9a4e4b65161868da.zip
ALSA: platform: Check CONFIG_PM_SLEEP instead of CONFIG_PM
When CONFIG_PM is set but CONFIG_PM_SLEEP is unset, SIMPLE_DEV_PM_OPS() ignores the given functions, and this leads to compile warnings. For avoiding this, simply check CONFIG_PM_SLEEP instead of CONFIG_PM. Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/atmel/abdac.c')
-rw-r--r--sound/atmel/abdac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c
index eb4ceb71123e..98554f4882b7 100644
--- a/sound/atmel/abdac.c
+++ b/sound/atmel/abdac.c
@@ -534,7 +534,7 @@ out_put_pclk:
return retval;
}
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
static int atmel_abdac_suspend(struct device *pdev)
{
struct snd_card *card = dev_get_drvdata(pdev);