diff options
author | Rob Herring <robh@kernel.org> | 2023-03-10 08:46:55 -0600 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2023-03-14 15:06:00 +0800 |
commit | 614bef7e2727f35ff7edb7f41354e4e5c655590c (patch) | |
tree | 5330d2b99692c3fe80cb6183ab9e40ffd94e70d0 /arch/arm/mach-imx | |
parent | 70dc8a098cddc5d5b5a5d9a6e7e4887c8e0575c6 (diff) | |
download | linux-stable-614bef7e2727f35ff7edb7f41354e4e5c655590c.tar.gz linux-stable-614bef7e2727f35ff7edb7f41354e4e5c655590c.tar.bz2 linux-stable-614bef7e2727f35ff7edb7f41354e4e5c655590c.zip |
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>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/gpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index ebc4339b8be4..5909088d5482 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -275,7 +275,7 @@ void __init imx_gpc_check_dt(void) if (WARN_ON(!np)) return; - if (WARN_ON(!of_find_property(np, "interrupt-controller", NULL))) { + if (WARN_ON(!of_property_read_bool(np, "interrupt-controller"))) { pr_warn("Outdated DT detected, suspend/resume will NOT work\n"); /* map GPC, so that at least CPUidle and WARs keep working */ |