]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: platform: Check CONFIG_PM_SLEEP instead of CONFIG_PM
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Aug 2012 13:47:15 +0000 (15:47 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Aug 2012 13:47:15 +0000 (15:47 +0200)
commitaddf96c024a097b074dc2ec63cd894639f57d48a
tree83db080b68eedf7b4fcc79b94358c2f884e0fdae
parente2d813bf91eb85a97c918c39f4316d0f81a0d1ba
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>
sound/arm/pxa2xx-ac97.c
sound/atmel/abdac.c
sound/atmel/ac97c.c
sound/drivers/aloop.c
sound/drivers/dummy.c
sound/drivers/pcsp/pcsp.c
sound/ppc/powermac.c