Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 121eb444 authored by Thierry Reding's avatar Thierry Reding Committed by Mark Brown
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent eba84320
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);