ASoC: sgtl5000: Simplify ASoC probe code
authorXiubo Li <Li.Xiubo@freescale.com>
Thu, 27 Feb 2014 09:49:53 +0000 (17:49 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 28 Feb 2014 03:53:04 +0000 (12:53 +0900)
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c

index 0fcbe90f3ef24520dbbd74092829d892b287ca1c..c8c37e431e7cdd9ba49a3d01e5a7f386e31a44ba 100644 (file)
@@ -1350,14 +1350,6 @@ static int sgtl5000_probe(struct snd_soc_codec *codec)
        int ret;
        struct sgtl5000_priv *sgtl5000 = snd_soc_codec_get_drvdata(codec);
 
-       /* setup i2c data ops */
-       codec->control_data = sgtl5000->regmap;
-       ret = snd_soc_codec_set_cache_io(codec, 16, 16, SND_SOC_REGMAP);
-       if (ret < 0) {
-               dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
-               return ret;
-       }
-
        ret = sgtl5000_enable_regulators(codec);
        if (ret)
                return ret;