diff mbox

[2/2] ASoC: wm2200: Drop unnecessary dapm bias_level initialization

Message ID 1426520397-24263-2-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit f263fa3e0f0b1d610f7a9d72a91fe67059d5564f
Headers show

Commit Message

Lars-Peter Clausen March 16, 2015, 3:39 p.m. UTC
The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being
called, there is no need to initialize it explicitly.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/codecs/wm2200.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Charles Keepax March 16, 2015, 4:36 p.m. UTC | #1
On Mon, Mar 16, 2015 at 04:39:57PM +0100, Lars-Peter Clausen wrote:
> The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being
> called, there is no need to initialize it explicitly.
> 
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles
Mark Brown March 17, 2015, 12:09 p.m. UTC | #2
On Mon, Mar 16, 2015 at 04:39:57PM +0100, Lars-Peter Clausen wrote:
> The default value for the bias_level is SND_SOC_BIAS_OFF when probe is being
> called, there is no need to initialize it explicitly.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c
index b48694a..5a9da28 100644
--- a/sound/soc/codecs/wm2200.c
+++ b/sound/soc/codecs/wm2200.c
@@ -1554,7 +1554,6 @@  static int wm2200_probe(struct snd_soc_codec *codec)
 	int ret;
 
 	wm2200->codec = codec;
-	codec->dapm.bias_level = SND_SOC_BIAS_OFF;
 
 	ret = snd_soc_add_codec_controls(codec, wm_adsp1_fw_controls, 2);
 	if (ret != 0)