[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZhHwp0_1XQV=6pmYrtU70yMNe1QfwQrekvM=UY4_AtRw@mail.gmail.com>
Date: Wed, 12 Mar 2014 15:54:05 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Srinivas KANDAGATLA <srinivas.kandagatla@...com>
Cc: kernel@...inux.com,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
srinivas.kandagatla@...il.com
Subject: Re: [PATCH] pinctrl: st: Fix error check for of_irq_to_resource usage
On Wed, Mar 12, 2014 at 2:35 PM, <srinivas.kandagatla@...com> wrote:
> From: Srinivas Kandagatla <srinivas.kandagatla@...com>
>
> This patch fixes an error check while using of_irq_to_resource.
> of_irq_to_resource returns non-zero interrupt number on success and zero
> on error. The driver was using error check is wrong way.
>
> Without this patch the driver will configure interrupt zero if there is
> no interrupt specified in the node.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@...com>
Patch applied.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists