Skip to content

Commit 908ce5c

Browse files
robherringarndb
authored andcommitted
ARM: pxa: Use of_property_read_bool() for boolean properties
It is preferred to use typed property access functions (i.e. of_property_read_<type> functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to to of_property_read_bool(). Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 3e54e7c commit 908ce5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/mach-pxa/irq.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int))
257257
}
258258
pxa_irq_base = io_p2v(res.start);
259259

260-
if (of_find_property(node, "marvell,intc-priority", NULL))
261-
cpu_has_ipr = 1;
260+
cpu_has_ipr = of_property_read_bool(node, "marvell,intc-priority");
262261

263262
ret = irq_alloc_descs(-1, 0, pxa_internal_irq_nr, 0);
264263
if (ret < 0) {

0 commit comments

Comments
 (0)