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>
This commit is contained in:
Thierry Reding 2014-07-07 15:18:19 +02:00 коммит произвёл Mark Brown
Родитель eba843201a
Коммит 121eb44413
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2408,7 +2408,7 @@ static int max98090_runtime_suspend(struct device *dev)
} }
#endif #endif
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static int max98090_resume(struct device *dev) static int max98090_resume(struct device *dev)
{ {
struct max98090_priv *max98090 = dev_get_drvdata(dev); struct max98090_priv *max98090 = dev_get_drvdata(dev);