summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/dcr.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-10 08:46:57 -0600
committerMichael Ellerman <mpe@ellerman.id.au>2023-03-30 23:36:35 +1100
commit4d57e3515e3838b12eccbeb5e0e52f053e3f638a (patch)
tree6b3a69db4051b3f6a547e34a39df8105ac149072 /arch/powerpc/sysdev/dcr.c
parent857d423c74228cfa064f79ff3a16b163fdb8d542 (diff)
downloadlinux-4d57e3515e3838b12eccbeb5e0e52f053e3f638a.tar.gz
linux-4d57e3515e3838b12eccbeb5e0e52f053e3f638a.tar.bz2
linux-4d57e3515e3838b12eccbeb5e0e52f053e3f638a.zip
powerpc: 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 of_property_read_bool(). Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230310144659.1541127-1-robh@kernel.org
Diffstat (limited to 'arch/powerpc/sysdev/dcr.c')
-rw-r--r--arch/powerpc/sysdev/dcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/dcr.c b/arch/powerpc/sysdev/dcr.c
index 3093f14111e6..70ce66eadff1 100644
--- a/arch/powerpc/sysdev/dcr.c
+++ b/arch/powerpc/sysdev/dcr.c
@@ -18,7 +18,7 @@ static struct device_node *find_dcr_parent(struct device_node *node)
const u32 *p;
for (par = of_node_get(node); par;) {
- if (of_get_property(par, "dcr-controller", NULL))
+ if (of_property_read_bool(par, "dcr-controller"))
break;
p = of_get_property(par, "dcr-parent", NULL);
tmp = par;