From: Lars-Peter Clausen Date: Tue, 4 Mar 2014 08:19:37 +0000 (+0100) Subject: ASoC: ak4104: Remove superfluous codec->control_data initialization X-Git-Tag: next-20140306~53^2~8^6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=57d4325a4fa67436b05f30c02a36e204c6cd1282;p=karo-tx-linux.git ASoC: ak4104: Remove superfluous codec->control_data initialization 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 Acked-by: Daniel Mack Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/ak4104.c b/sound/soc/codecs/ak4104.c index b4819dcd4f4d..10adf25d4c14 100644 --- a/sound/soc/codecs/ak4104.c +++ b/sound/soc/codecs/ak4104.c @@ -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,