]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: max98090: Guard runtime PM callbacks
authorMark Brown <broonie@linaro.org>
Wed, 5 Jun 2013 18:33:03 +0000 (19:33 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 6 Jun 2013 08:59:13 +0000 (09:59 +0100)
Otherwise the functions will be defined but unreferenced when runtime PM
is disabled, generating warnings.

Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/max98090.c

index cbb272b1f73d0a8c81461a7ed95ac5d8694a724e..3854d22096762f1e6450136951ba83267c5cc504 100644 (file)
@@ -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,