Skip to content

Commit 5a3ad6b

Browse files
committed
ASoC: Don't use wm8994->control_data when requesting IRQs
The field is no longer initialised so this will crash if running on wm8958. Reported-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 8eeea52 commit 5a3ad6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sound/soc/codecs/wm8994.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3180,9 +3180,9 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
31803180

31813181
wm8994_request_irq(codec->control_data, WM8994_IRQ_FIFOS_ERR,
31823182
wm8994_fifo_error, "FIFO error", codec);
3183-
wm8994_request_irq(wm8994->control_data, WM8994_IRQ_TEMP_WARN,
3183+
wm8994_request_irq(codec->control_data, WM8994_IRQ_TEMP_WARN,
31843184
wm8994_temp_warn, "Thermal warning", codec);
3185-
wm8994_request_irq(wm8994->control_data, WM8994_IRQ_TEMP_SHUT,
3185+
wm8994_request_irq(codec->control_data, WM8994_IRQ_TEMP_SHUT,
31863186
wm8994_temp_shut, "Thermal shutdown", codec);
31873187

31883188
ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_DCS_DONE,

0 commit comments

Comments
 (0)