提交 23d622b1 编写于 作者: A Axel Lin 提交者: Mark Brown

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: NAxel Lin <axel.lin@gmail.com>
Acked-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 458f6f69
...@@ -458,6 +458,7 @@ static int adau1701_probe(struct snd_soc_codec *codec) ...@@ -458,6 +458,7 @@ static int adau1701_probe(struct snd_soc_codec *codec)
int ret; int ret;
codec->dapm.idle_bias_off = 1; codec->dapm.idle_bias_off = 1;
codec->control_data = to_i2c_client(codec->dev);
ret = adau1701_load_firmware(codec); ret = adau1701_load_firmware(codec);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册