of: irq: use of_property_read_bool() for "interrupt-controller" prop
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 8 Jul 2017 20:29:51 +0000 (23:29 +0300)
committerRob Herring <robh@kernel.org>
Fri, 21 Jul 2017 14:59:33 +0000 (09:59 -0500)
commit6a245d959c747079e88bb1c61baa61d43d460a44
tree151db1837853d62bd5b68a9520f29d3ac30c284f
parentd1651b03c2df75db8eda3fbcd3a07adb337ee8b0
of: irq: use of_property_read_bool() for "interrupt-controller" prop

The "interrupt-controller" property is boolean, i.e. has no value.  The DT
interrupt parsing code predates of_property_read_bool(), so it uses either
of_get_property() or of_find_property() -- the former isn't quite correct
for the boolean props (but works somehow). Use the modern boolean prop API
instead.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/irq.c