diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-07 17:18:19 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-07 19:06:35 +0400 |
commit | 121eb444135c25701051eb849e7ccf0dd412382b (patch) | |
tree | 2117370323c84781f9e48cafd7feb41e5094f1dc | |
parent | eba843201a8e5824c5e6e539db6cd1a6ba84f145 (diff) | |
download | linux-121eb444135c25701051eb849e7ccf0dd412382b.tar.xz |
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) } #endif -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int max98090_resume(struct device *dev) { struct max98090_priv *max98090 = dev_get_drvdata(dev); |