diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-07 09:18:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-07 11:06:35 -0400 |
commit | 121eb444135c25701051eb849e7ccf0dd412382b (patch) | |
tree | 2117370323c84781f9e48cafd7feb41e5094f1dc | |
parent | eba843201a8e5824c5e6e539db6cd1a6ba84f145 (diff) |
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>
-rw-r--r-- | sound/soc/codecs/max98090.c | 2 |
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) | |||
2408 | } | 2408 | } |
2409 | #endif | 2409 | #endif |
2410 | 2410 | ||
2411 | #ifdef CONFIG_PM | 2411 | #ifdef CONFIG_PM_SLEEP |
2412 | static int max98090_resume(struct device *dev) | 2412 | static int max98090_resume(struct device *dev) |
2413 | { | 2413 | { |
2414 | struct max98090_priv *max98090 = dev_get_drvdata(dev); | 2414 | struct max98090_priv *max98090 = dev_get_drvdata(dev); |