ASoC: Don't use wm8994->control_data when requesting IRQs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 4 Nov 2011 15:53:48 +0000 (15:53 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 4 Nov 2011 23:24:58 +0000 (23:24 +0000)
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>
sound/soc/codecs/wm8994.c

index 3d2c3d4711d03c786b274956908b88994ed2e3e7..9cb16cc853b3a886bc9f97c68e32cbd6750232cb 100644 (file)
@@ -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,