ASoC: wm8994: We don't need to runtime resume by default
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 18:37:08 +0000 (18:37 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 19:06:01 +0000 (19:06 +0000)
This is the default state that the runtime PM infrastructure expects so
instead just kick the runtime PM core to suspend us if we're not doing
anything (as is default).

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c

index 9bb8192de7f27fe160c9c8ac0b0e52bdf832b426..6b12f5da6b7f41504205750a086d517a9f96312d 100644 (file)
@@ -3387,7 +3387,7 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
                                     WM8994_IRQ_MIC1_DET;
 
        pm_runtime_enable(codec->dev);
-       pm_runtime_resume(codec->dev);
+       pm_runtime_idle(codec->dev);
 
        /* By default use idle_bias_off, will override for WM8994 */
        codec->dapm.idle_bias_off = 1;