Re: [PATCH] pinctrl: st: Fix error check for of_irq_to_resource usage

From: Linus Walleij
Date: Wed Mar 12 2014 - 10:54:16 EST


On Wed, Mar 12, 2014 at 2:35 PM, <srinivas.kandagatla@xxxxxx> wrote:

> From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>
>
> 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@xxxxxx>

Patch applied.

Yours,
Linus Walleij
--
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/