Skip to contentSkip to conversation

ASoC: max98090: Guard runtime PM callbacks

PATCH New Mark Brown 1 participant 1 message Jun 5, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: max98090: Guard runtime PM callbacks

Otherwise the functions will be defined but unreferenced when runtime PM is disabled, generating warnings.

---
 sound/soc/codecs/max98090.c |    2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/max98090.c +2 -0
index 1bf96bd..ad5313f 100644
@@ -2350,6 +2350,7 @@ static int max98090_i2c_remove(struct i2c_client *client)
 	return 0;
 }
 
+#ifdef CONFIG_PM_RUNTIME
 static int max98090_runtime_resume(struct device *dev)
 {
 	struct max98090_priv *max98090 = dev_get_drvdata(dev);
@@ -2369,6 +2370,7 @@ static int max98090_runtime_suspend(struct device *dev)
 
 	return 0;
 }
+#endif
 
 static const struct dev_pm_ops max98090_pm = {
 	SET_RUNTIME_PM_OPS(max98090_runtime_suspend,
Signature · 1 line
1.7.10.4