OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b848792
)
ASoC: soc-jack: Fix checking return value of request_any_context_irq
author
Axel Lin
<axel.lin@gmail.com>
Sat, 13 Aug 2011 11:15:01 +0000
(19:15 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 15 Aug 2011 13:28:46 +0000
(22:28 +0900)
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
sound/soc/soc-jack.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-jack.c
b/sound/soc/soc-jack.c
index
7c17b98
..
38b0013
100644
(file)
--- 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) {