Commit 3722dc8e authored by Mark Brown's avatar Mark Brown

ASoC: max98090: Guard runtime PM callbacks

Otherwise the functions will be defined but unreferenced when runtime PM
is disabled, generating warnings.
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent fd5f940f
...@@ -2350,6 +2350,7 @@ static int max98090_i2c_remove(struct i2c_client *client) ...@@ -2350,6 +2350,7 @@ static int max98090_i2c_remove(struct i2c_client *client)
return 0; return 0;
} }
#ifdef CONFIG_PM_RUNTIME
static int max98090_runtime_resume(struct device *dev) static int max98090_runtime_resume(struct device *dev)
{ {
struct max98090_priv *max98090 = dev_get_drvdata(dev); struct max98090_priv *max98090 = dev_get_drvdata(dev);
...@@ -2369,6 +2370,7 @@ static int max98090_runtime_suspend(struct device *dev) ...@@ -2369,6 +2370,7 @@ static int max98090_runtime_suspend(struct device *dev)
return 0; return 0;
} }
#endif
static const struct dev_pm_ops max98090_pm = { static const struct dev_pm_ops max98090_pm = {
SET_RUNTIME_PM_OPS(max98090_runtime_suspend, SET_RUNTIME_PM_OPS(max98090_runtime_suspend,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment