diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-13 19:15:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-03 11:39:47 -0700 |
commit | 397d8ae5dd5565a1b77402034bf4d74efd6cfff7 (patch) | |
tree | a071e07bb0d9b91c9bbf82f638798b3f3a7b38dc /sound | |
parent | 6d2e754003e789c6fb18de76d565a4cab83022a5 (diff) | |
download | kernel_samsung_crespo-397d8ae5dd5565a1b77402034bf4d74efd6cfff7.zip kernel_samsung_crespo-397d8ae5dd5565a1b77402034bf4d74efd6cfff7.tar.gz kernel_samsung_crespo-397d8ae5dd5565a1b77402034bf4d74efd6cfff7.tar.bz2 |
ASoC: soc-jack: Fix checking return value of request_any_context_irq
commit d2b4c7bd7eabfaa2e3e5b8107d5eeb56ac879813 upstream.
request_any_context_irq() returns a negative value on failure.
On success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-jack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 7c17b98..38b0013 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -327,7 +327,7 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, IRQF_TRIGGER_FALLING, gpios[i].name, &gpios[i]); - if (ret) + if (ret < 0) goto err; if (gpios[i].wake) { |