ASoC: ak4104: Remove superfluous codec->control_data initialization
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 4 Mar 2014 08:19:37 +0000 (09:19 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 5 Mar 2014 01:25:36 +0000 (09:25 +0800)
The driver uses automatic IO setup, which will also initialize the control_data
field of the CODEC, no need to do it manually.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/ak4104.c

index b4819dcd4f4dc73f781383681d0ed4198ac2f220..10adf25d4c14f36e64d383d8be3a967387ce1726 100644 (file)
@@ -174,8 +174,6 @@ static int ak4104_probe(struct snd_soc_codec *codec)
        struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec);
        int ret;
 
-       codec->control_data = ak4104->regmap;
-
        /* set power-up and non-reset bits */
        ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1,
                                 AK4104_CONTROL1_PW | AK4104_CONTROL1_RSTN,