Skip to content

Commit

Permalink
ASoC: Don't use wm8994->control_data when requesting IRQs
Browse files Browse the repository at this point in the history
The field is no longer initialised so this will crash if running on
wm8958.

Reported-by: Thomas Abraham <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Nov 4, 2011
1 parent 8eeea52 commit 5a3ad6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -3180,9 +3180,9 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)

wm8994_request_irq(codec->control_data, WM8994_IRQ_FIFOS_ERR,
wm8994_fifo_error, "FIFO error", codec);
wm8994_request_irq(wm8994->control_data, WM8994_IRQ_TEMP_WARN,
wm8994_request_irq(codec->control_data, WM8994_IRQ_TEMP_WARN,
wm8994_temp_warn, "Thermal warning", codec);
wm8994_request_irq(wm8994->control_data, WM8994_IRQ_TEMP_SHUT,
wm8994_request_irq(codec->control_data, WM8994_IRQ_TEMP_SHUT,
wm8994_temp_shut, "Thermal shutdown", codec);

ret = wm8994_request_irq(codec->control_data, WM8994_IRQ_DCS_DONE,
Expand Down

0 comments on commit 5a3ad6b

Please sign in to comment.