From: Mark Brown Date: Mon, 5 Dec 2011 15:17:36 +0000 (+0000) Subject: ASoC: Rely on core enabling the wm8994 with runtime PM X-Git-Tag: MMI-PSA29.97-13-9~16612^2~277 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4105ab846ca795f03e63fb7bfacafc4217f48ca8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Rely on core enabling the wm8994 with runtime PM No need to do this in the driver now. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 02ca2573214d..3eaf56a33964 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -2188,8 +2188,6 @@ static int wm8994_set_bias_level(struct snd_soc_codec *codec, case SND_SOC_BIAS_STANDBY: if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { - pm_runtime_get_sync(codec->dev); - switch (control->type) { case WM8994: if (wm8994->revision < 4) { @@ -2256,11 +2254,8 @@ static int wm8994_set_bias_level(struct snd_soc_codec *codec, break; case SND_SOC_BIAS_OFF: - if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) { + if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) wm8994->cur_fw = NULL; - - pm_runtime_put(codec->dev); - } break; } codec->dapm.bias_level = level;