summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98090.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-07-07 15:18:19 +0200
committerMark Brown <broonie@linaro.org>2014-07-07 17:06:35 +0200
commit121eb444135c25701051eb849e7ccf0dd412382b (patch)
tree2117370323c84781f9e48cafd7feb41e5094f1dc /sound/soc/codecs/max98090.c
parenteba843201a8e5824c5e6e539db6cd1a6ba84f145 (diff)
downloadblackbird-obmc-linux-121eb444135c25701051eb849e7ccf0dd412382b.tar.gz
blackbird-obmc-linux-121eb444135c25701051eb849e7ccf0dd412382b.zip
ASoC: max98090: Fix build warning
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> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/max98090.c')
-rw-r--r--sound/soc/codecs/max98090.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index 0e59e5117e43..6816578ea8f7 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2408,7 +2408,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);
OpenPOWER on IntegriCloud