aboutsummaryrefslogtreecommitdiffstats
path: root/sound/atmel/ac97c.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-09 09:47:15 -0400
committerTakashi Iwai <tiwai@suse.de>2012-08-09 09:47:15 -0400
commitd34e4e00adbbc91ff9fc96ed9a4e4b65161868da (patch)
tree83db080b68eedf7b4fcc79b94358c2f884e0fdae /sound/atmel/ac97c.c
parent94c142a160d63edac0e1fca7848960dcf75dd2a9 (diff)
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/ac97c.c')
-rw-r--r--sound/atmel/ac97c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index bf47025bdf45..3c8d3ba7ddfc 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -1134,7 +1134,7 @@ err_snd_card_new:
1134 return retval; 1134 return retval;
1135} 1135}
1136 1136
1137#ifdef CONFIG_PM 1137#ifdef CONFIG_PM_SLEEP
1138static int atmel_ac97c_suspend(struct device *pdev) 1138static int atmel_ac97c_suspend(struct device *pdev)
1139{ 1139{
1140 struct snd_card *card = dev_get_drvdata(pdev); 1140 struct snd_card *card = dev_get_drvdata(pdev);