]> Git Repo - linux.git/commit - kernel/irq/devres.c
genirq: devres: Fix testing return value of request_any_context_irq()
authorAxel Lin <[email protected]>
Mon, 11 May 2015 09:02:58 +0000 (17:02 +0800)
committerThomas Gleixner <[email protected]>
Wed, 13 May 2015 08:47:37 +0000 (10:47 +0200)
commit63781394c540dd9e666a6b21d70b64dd52bce76e
tree9a4fb9ac620df0aa9c79c145a0963ca2eaf41ede
parentdbf07cf0c846c3a0d3f97976931cb4ae78f730e2
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: 0668d3065128 ("genirq: Add devm_request_any_context_irq()")
Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/irq/devres.c
This page took 0.053337 seconds and 4 git commands to generate.