summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2014-06-19 09:32:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-17 09:19:17 -0700
commite9d0913e1754d5d0489767e03e4311ceff53891d (patch)
treefe9065c758de94b602f80a639d50ed3ab808f2c9
parent9e26a8159b3da6fc21e43c811ba147bce94814e7 (diff)
downloadlinux-stable-e9d0913e1754d5d0489767e03e4311ceff53891d.tar.gz
linux-stable-e9d0913e1754d5d0489767e03e4311ceff53891d.tar.bz2
linux-stable-e9d0913e1754d5d0489767e03e4311ceff53891d.zip
ASoC: max98090: Fix missing free_irq
commit 4adeb0ccf86a5af1825bbfe290dee9e60a5ab870 upstream. max98090.c doesn't free the threaded interrupt it requests. This causes an oops when doing "cat /proc/interrupts" after snd-soc-max98090.ko is unloaded. Fix this by requesting the interrupt by using devm_request_threaded_irq(). Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--sound/soc/codecs/max98090.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index b3f7c9026a29..ddfb0fddd030 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2250,7 +2250,7 @@ static int max98090_probe(struct snd_soc_codec *codec)
/* Register for interrupts */
dev_dbg(codec->dev, "irq = %d\n", max98090->irq);
- ret = request_threaded_irq(max98090->irq, NULL,
+ ret = devm_request_threaded_irq(codec->dev, max98090->irq, NULL,
max98090_interrupt, IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
"max98090_interrupt", codec);
if (ret < 0) {