From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753479AbbEKSGm (ORCPT ); Mon, 11 May 2015 14:06:42 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47902 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754805AbbEKSGb (ORCPT ); Mon, 11 May 2015 14:06:31 -0400 Message-ID: <5550EFA5.1030502@codeaurora.org> Date: Mon, 11 May 2015 11:06:29 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Axel Lin , Thomas Gleixner CC: "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] genirq: devres: Fix testing return value of request_any_context_irq() References: <1431334978.17783.4.camel@ingics.com> In-Reply-To: <1431334978.17783.4.camel@ingics.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project