瀏覽代碼

ASoC: wm8994: We don't need to runtime resume by default

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>
Mark Brown 13 年之前
父節點
當前提交
5fab517476
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/soc/codecs/wm8994.c

+ 1 - 1
sound/soc/codecs/wm8994.c

@@ -3387,7 +3387,7 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
 				     WM8994_IRQ_MIC1_DET;
 				     WM8994_IRQ_MIC1_DET;
 
 
 	pm_runtime_enable(codec->dev);
 	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 */
 	/* By default use idle_bias_off, will override for WM8994 */
 	codec->dapm.idle_bias_off = 1;
 	codec->dapm.idle_bias_off = 1;