Re: [PATCH v2] genirq: devres: Fix testing return value of request_any_context_irq()

From: Stephen Boyd
Date: Mon May 11 2015 - 14:07:39 EST


On 05/11/15 02:02, Axel Lin wrote:
> 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 <axel.lin@xxxxxxxxxx>
> ---

Reviewed-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/