ASoC: codec: Simplify ASoC probe code.
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / max9768.c
index 31f91560e9f6df0fb115ea862b712e9863cad9dd..ec481fc428c7c9fcb7a963fbabd1e9f34c1ace7b 100644 (file)
@@ -135,11 +135,6 @@ static int max9768_probe(struct snd_soc_codec *codec)
        struct max9768 *max9768 = snd_soc_codec_get_drvdata(codec);
        int ret;
 
-       codec->control_data = max9768->regmap;
-       ret = snd_soc_codec_set_cache_io(codec, 2, 6, SND_SOC_REGMAP);
-       if (ret)
-               return ret;
-
        if (max9768->flags & MAX9768_FLAG_CLASSIC_PWM) {
                ret = snd_soc_write(codec, MAX9768_CTRL, MAX9768_CTRL_PWM);
                if (ret)