From: Axel Lin Date: Wed, 28 Sep 2011 07:21:28 +0000 (+0800) Subject: ASoC: adau1701: Initialize codec->control_data before using it X-Git-Tag: next-20110929~51^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=23d622b14b0209d243f5990cb4d369d4fffaf335;p=karo-tx-linux.git ASoC: adau1701: Initialize codec->control_data before using it Currently codec->control_data is not initialized before calling process_sigma_firmware(codec->control_data, ADAU1701_FIRMWARE). Signed-off-by: Axel Lin Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c index 2758d5fc60d6..b400afad12e0 100644 --- a/sound/soc/codecs/adau1701.c +++ b/sound/soc/codecs/adau1701.c @@ -458,6 +458,7 @@ static int adau1701_probe(struct snd_soc_codec *codec) int ret; codec->dapm.idle_bias_off = 1; + codec->control_data = to_i2c_client(codec->dev); ret = adau1701_load_firmware(codec); if (ret)