summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-08-13 19:15:01 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-15 22:28:46 +0900
commitd2b4c7bd7eabfaa2e3e5b8107d5eeb56ac879813 (patch)
tree58e24261e34e254e9d3600d28916aea8f7596ebb /sound/soc
parentb8487928f5ca2976e4cb8d329943af849d2b6197 (diff)
downloadlinux-d2b4c7bd7eabfaa2e3e5b8107d5eeb56ac879813.tar.bz2
ASoC: soc-jack: Fix checking return value of request_any_context_irq
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> Cc: stable@kernel.orG
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c
index 7c17b98d5846..38b00131b2fe 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) {