diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2014-06-19 09:32:05 +0300 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-07 15:17:58 +0900 |
commit | e1c53533e917ce95f25323ec1c4cbb4fcdc41d7f (patch) | |
tree | 40b4b16a14dae07d7c5097d945e62c51e43243e4 | |
parent | 0b22079924b95f82683305ea4ee7e67b0ae22de0 (diff) | |
download | linux-3.10-e1c53533e917ce95f25323ec1c4cbb4fcdc41d7f.tar.gz linux-3.10-e1c53533e917ce95f25323ec1c4cbb4fcdc41d7f.tar.bz2 linux-3.10-e1c53533e917ce95f25323ec1c4cbb4fcdc41d7f.zip |
ASoC: max98090: Fix missing free_irq
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().
Change-Id: I7ca9d1085c916a2da0092feadc46277d261d98ee
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Cc: Stable <stable@vger.kernel.org> # 3.10+
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/max98090.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index c875567bc90..5da17b9eea1 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2234,7 +2234,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) { |