aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/adav80x.c
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-03-11 00:43:20 -0400
committerMark Brown <broonie@linaro.org>2014-03-11 05:59:05 -0400
commit5d6be5aa6becc750c5c2aa0ef8f7209ce19aa328 (patch)
tree332783c28f3fe037cdaaa86f9b30072904be6ddd /sound/soc/codecs/adav80x.c
parentdb5a5ee7c7b20a1780f90c6f2b8de322844b6fe9 (diff)
ASoC: codec: Simplify ASoC probe code.
For some CODEC drivers like who act as the MFDs children are ignored by this patch. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/adav80x.c')
-rw-r--r--sound/soc/codecs/adav80x.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c
index f78b27a7c461..8d79c3fe02dc 100644
--- a/sound/soc/codecs/adav80x.c
+++ b/sound/soc/codecs/adav80x.c
@@ -798,15 +798,8 @@ static struct snd_soc_dai_driver adav80x_dais[] = {
798 798
799static int adav80x_probe(struct snd_soc_codec *codec) 799static int adav80x_probe(struct snd_soc_codec *codec)
800{ 800{
801 int ret;
802 struct adav80x *adav80x = snd_soc_codec_get_drvdata(codec); 801 struct adav80x *adav80x = snd_soc_codec_get_drvdata(codec);
803 802
804 ret = snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
805 if (ret) {
806 dev_err(codec->dev, "failed to set cache I/O: %d\n", ret);
807 return ret;
808 }
809
810 /* Force PLLs on for SYSCLK output */ 803 /* Force PLLs on for SYSCLK output */
811 snd_soc_dapm_force_enable_pin(&codec->dapm, "PLL1"); 804 snd_soc_dapm_force_enable_pin(&codec->dapm, "PLL1");
812 snd_soc_dapm_force_enable_pin(&codec->dapm, "PLL2"); 805 snd_soc_dapm_force_enable_pin(&codec->dapm, "PLL2");