]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl-st: fix of_irq_to_resource() result check
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 29 Jul 2017 18:07:07 +0000 (21:07 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:02 +0000 (15:01 +0200)
commit98c01b19b85d8d87927e8cfa09c4a2a14add9ba2
tree96d761dc0ea7a96641d17f1251317580808368c2
parentff7e4d2a1516510e3a832340db1b86e349011a23
pinctrl-st: fix of_irq_to_resource() result check

of_irq_to_resource() has recently been fixed to return negative error #'s
along with 0 in case of failure, however the ST driver still only regards
0 as failure indication -- fix it up.

Fixes: 7a4228bbff76 ("of: irq: use of_irq_get() in of_irq_to_resource()")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c