]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: Fix pinctrl register irq fail bug.
authorHongzhou Yang <hongzhou.yang@mediatek.com>
Wed, 27 May 2015 09:43:55 +0000 (02:43 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Jun 2015 09:08:03 +0000 (11:08 +0200)
commitd0758146916337bc13cbcc8bd40122e93a5c4d82
tree8cba318fb3c2a0aeb0867d369c1bd628fe055745
parent5590d9236264ae54b2fe04c38f7c9568c9b1d509
pinctrl: mediatek: Fix pinctrl register irq fail bug.

Since mt6397 is no need to support interrupt controller,
I judged "interrupt-controller" property to skip it last patch.
But the if judgement should on the contrary, this is a bug.

And find of_property_read_bool is better for this case.
So using of_property_read_bool instead of of_find_property.

Also fix bug of misuse pointer.

Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c