Skip to content

Commit

Permalink
ASoC: max98090: Fix build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Mark Brown committed Jul 7, 2014
1 parent eba8432 commit 121eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 121eb44

Please sign in to comment.