diff options
| author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-05-12 00:22:59 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-05-12 14:47:47 -0400 |
| commit | 208ba89b402d4f63a1352ae289fb8428cb92e7ec (patch) | |
| tree | 01e928b523bff180efc655aa21c8a82d8eb6e092 | |
| parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) | |
ASoC: twl6040: Pass the IRQF_ONESHOT flag
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject
bogus threaded irq requests") threaded IRQs without a primary handler
need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available
in scripts/coccinelle/misc/irqf_oneshot.cocci.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/codecs/twl6040.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index aeec27b6f1af..ca117fc9ca0d 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
| @@ -1123,7 +1123,8 @@ static int twl6040_probe(struct snd_soc_codec *codec) | |||
| 1123 | mutex_init(&priv->mutex); | 1123 | mutex_init(&priv->mutex); |
| 1124 | 1124 | ||
| 1125 | ret = request_threaded_irq(priv->plug_irq, NULL, | 1125 | ret = request_threaded_irq(priv->plug_irq, NULL, |
| 1126 | twl6040_audio_handler, IRQF_NO_SUSPEND, | 1126 | twl6040_audio_handler, |
| 1127 | IRQF_NO_SUSPEND | IRQF_ONESHOT, | ||
| 1127 | "twl6040_irq_plug", codec); | 1128 | "twl6040_irq_plug", codec); |
| 1128 | if (ret) { | 1129 | if (ret) { |
| 1129 | dev_err(codec->dev, "PLUG IRQ request failed: %d\n", ret); | 1130 | dev_err(codec->dev, "PLUG IRQ request failed: %d\n", ret); |
