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)
commitfc63d854cb55bfe2b6c67317b5bd91aaa2d058c3
tree8cba318fb3c2a0aeb0867d369c1bd628fe055745
parent257e961ddd66998b360447ea27db7936d8defaa0
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