Skip to content

Commit 614bef7

Browse files
robherringShawn Guo
authored andcommitted
ARM: imx: 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 <robh@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 70dc8a0 commit 614bef7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm/mach-imx/gpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void __init imx_gpc_check_dt(void)
275275
if (WARN_ON(!np))
276276
return;
277277

278-
if (WARN_ON(!of_find_property(np, "interrupt-controller", NULL))) {
278+
if (WARN_ON(!of_property_read_bool(np, "interrupt-controller"))) {
279279
pr_warn("Outdated DT detected, suspend/resume will NOT work\n");
280280

281281
/* map GPC, so that at least CPUidle and WARs keep working */

0 commit comments

Comments
 (0)