summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2014-03-12 13:35:05 +0000
committerLinus Walleij <linus.walleij@linaro.org>2014-03-12 15:53:44 +0100
commitbcca9220b211b9668c23c9d8ccb0a3d29716482b (patch)
treece8457f7eb42534996e753455661e5709698e15f /drivers/usb
parent93cfb2d86285a7aa9a9ca47bff44d3035005cb8c (diff)
downloadop-kernel-dev-bcca9220b211b9668c23c9d8ccb0a3d29716482b.zip
op-kernel-dev-bcca9220b211b9668c23c9d8ccb0a3d29716482b.tar.gz
pinctrl: st: Fix error check for of_irq_to_resource usage
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@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud