Skip to content
Commit 63781394 authored by Axel Lin's avatar Axel Lin Committed by Thomas Gleixner
Browse files

genirq: devres: Fix testing return value of request_any_context_irq()



request_any_context_irq() returns a negative value on failure.
It returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED on success.
So fix testing return value of request_any_context_irq().

Also fixup the return value of devm_request_any_context_irq() to make it
consistent with request_any_context_irq().

Fixes: 0668d306 ("genirq: Add devm_request_any_context_irq()")
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1431334978.17783.4.camel@ingics.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent dbf07cf0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment