mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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 <axel.lin@gmail.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
458f6f6921
commit
23d622b14b
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue