aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-02-27 04:49:53 -0500
committerMark Brown <broonie@linaro.org>2014-02-27 22:53:04 -0500
commit30519cb8d2ecb7f0f0cdc42d709da0d9f7a04bcb (patch)
treeea2ef1e77ffe04e470abcb4c01a03eeb41ef9958 /sound/soc/codecs
parentfe2265e4833a3ebea426d748b5ecf8d3ff31edc8 (diff)
ASoC: sgtl5000: Simplify ASoC probe code
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/sgtl5000.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 0fcbe90f3ef2..c8c37e431e7c 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -1350,14 +1350,6 @@ static int sgtl5000_probe(struct snd_soc_codec *codec)
1350 int ret; 1350 int ret;
1351 struct sgtl5000_priv *sgtl5000 = snd_soc_codec_get_drvdata(codec); 1351 struct sgtl5000_priv *sgtl5000 = snd_soc_codec_get_drvdata(codec);
1352 1352
1353 /* setup i2c data ops */
1354 codec->control_data = sgtl5000->regmap;
1355 ret = snd_soc_codec_set_cache_io(codec, 16, 16, SND_SOC_REGMAP);
1356 if (ret < 0) {
1357 dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
1358 return ret;
1359 }
1360
1361 ret = sgtl5000_enable_regulators(codec); 1353 ret = sgtl5000_enable_regulators(codec);
1362 if (ret) 1354 if (ret)
1363 return ret; 1355 return ret;