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

2014-03-12 Thread Linus Walleij
On Wed, Mar 12, 2014 at 2:35 PM, wrote: > From: Srinivas Kandagatla > > 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

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

2014-03-12 Thread srinivas.kandagatla
From: Srinivas Kandagatla 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

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

2014-03-12 Thread Linus Walleij
On Wed, Mar 12, 2014 at 2:35 PM, srinivas.kandaga...@st.com wrote: From: Srinivas Kandagatla srinivas.kandaga...@st.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

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

2014-03-12 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.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