diff options
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 6cc0566dc29a..1fcb9f3f3097 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -4082,17 +4082,23 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec) | |||
4082 | 4082 | ||
4083 | switch (control->type) { | 4083 | switch (control->type) { |
4084 | case WM8994: | 4084 | case WM8994: |
4085 | if (wm8994->micdet_irq) { | 4085 | if (wm8994->micdet_irq) |
4086 | ret = request_threaded_irq(wm8994->micdet_irq, NULL, | 4086 | ret = request_threaded_irq(wm8994->micdet_irq, NULL, |
4087 | wm8994_mic_irq, | 4087 | wm8994_mic_irq, |
4088 | IRQF_TRIGGER_RISING, | 4088 | IRQF_TRIGGER_RISING, |
4089 | "Mic1 detect", | 4089 | "Mic1 detect", |
4090 | wm8994); | 4090 | wm8994); |
4091 | if (ret != 0) | 4091 | else |
4092 | dev_warn(codec->dev, | 4092 | ret = wm8994_request_irq(wm8994->wm8994, |
4093 | "Failed to request Mic1 detect IRQ: %d\n", | 4093 | WM8994_IRQ_MIC1_DET, |
4094 | ret); | 4094 | wm8994_mic_irq, "Mic 1 detect", |
4095 | } | 4095 | wm8994); |
4096 | |||
4097 | if (ret != 0) | ||
4098 | dev_warn(codec->dev, | ||
4099 | "Failed to request Mic1 detect IRQ: %d\n", | ||
4100 | ret); | ||
4101 | |||
4096 | 4102 | ||
4097 | ret = wm8994_request_irq(wm8994->wm8994, | 4103 | ret = wm8994_request_irq(wm8994->wm8994, |
4098 | WM8994_IRQ_MIC1_SHRT, | 4104 | WM8994_IRQ_MIC1_SHRT, |