* [PATCH] ASoC: max98090: Fix build warning
@ 2014-07-07 13:18 Thierry Reding
2014-07-07 15:06 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2014-07-07 13:18 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, linux-kernel
From: Thierry Reding <treding@nvidia.com>
The max98090_{suspend,resume}() functions are used for system sleep and
therefore need to be guarded by CONFIG_PM_SLEEP rather than CONFIG_PM.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
sound/soc/codecs/max98090.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index ca74f502a4cb..e806065d68cc 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2415,7 +2415,7 @@ static int max98090_runtime_suspend(struct device *dev)
}
#endif
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
static int max98090_resume(struct device *dev)
{
struct max98090_priv *max98090 = dev_get_drvdata(dev);
--
2.0.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: max98090: Fix build warning
2014-07-07 13:18 [PATCH] ASoC: max98090: Fix build warning Thierry Reding
@ 2014-07-07 15:06 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-07-07 15:06 UTC (permalink / raw)
To: Thierry Reding; +Cc: Liam Girdwood, alsa-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
On Mon, Jul 07, 2014 at 03:18:19PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> The max98090_{suspend,resume}() functions are used for system sleep and
> therefore need to be guarded by CONFIG_PM_SLEEP rather than CONFIG_PM.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-07 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-07 13:18 [PATCH] ASoC: max98090: Fix build warning Thierry Reding
2014-07-07 15:06 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox