Commit d2b4c7bd authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.orG
parent b8487928
...@@ -327,7 +327,7 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, ...@@ -327,7 +327,7 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
IRQF_TRIGGER_FALLING, IRQF_TRIGGER_FALLING,
gpios[i].name, gpios[i].name,
&gpios[i]); &gpios[i]);
if (ret) if (ret < 0)
goto err; goto err;
if (gpios[i].wake) { if (gpios[i].wake) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment