ASoC: soc-jack: Fix checking return value of request_any_context_irq
PATCH 1/1 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 <[email protected]>
--- sound/soc/soc-jack.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/soc-jack.c +1 -1
@@ -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) {
Signature · 1 line
1.7.4.1
Mark Brown
AppliedQuoted 2 lines · Axel Lin
request_any_context_irq()returns a negative value on failure. On success, it returns eitherIRQC_IS_HARDIRQorIRQC_IS_NESTED.
Applied, thanks.