aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8940.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8940.c')
-rw-r--r--sound/soc/codecs/wm8940.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c
index 25580e3ee7c..d40da04db37 100644
--- a/sound/soc/codecs/wm8940.c
+++ b/sound/soc/codecs/wm8940.c
@@ -297,8 +297,6 @@ static int wm8940_add_widgets(struct snd_soc_codec *codec)
297 if (ret) 297 if (ret)
298 goto error_ret; 298 goto error_ret;
299 ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); 299 ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
300 if (ret)
301 goto error_ret;
302 300
303error_ret: 301error_ret:
304 return ret; 302 return ret;
@@ -472,6 +470,8 @@ static int wm8940_set_bias_level(struct snd_soc_codec *codec,
472 break; 470 break;
473 } 471 }
474 472
473 codec->dapm.bias_level = level;
474
475 return ret; 475 return ret;
476} 476}
477 477
@@ -683,8 +683,6 @@ static int wm8940_resume(struct snd_soc_codec *codec)
683 } 683 }
684 } 684 }
685 ret = wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 685 ret = wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
686 if (ret)
687 goto error_ret;
688 686
689error_ret: 687error_ret:
690 return ret; 688 return ret;
@@ -730,9 +728,6 @@ static int wm8940_probe(struct snd_soc_codec *codec)
730 if (ret) 728 if (ret)
731 return ret; 729 return ret;
732 ret = wm8940_add_widgets(codec); 730 ret = wm8940_add_widgets(codec);
733 if (ret)
734 return ret;
735
736 return ret; 731 return ret;
737} 732}
738 733