summaryrefslogtreecommitdiff
path: root/drivers/soc/ti/wkup_m3_ipc.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-10 17:47:25 +0300
committerNishanth Menon <nm@ti.com>2023-03-11 14:57:07 +0300
commit82e46bf71780940a5e060fcb02397ecf7f55e768 (patch)
treef4ceab1ab1c3a9e8ea2813a4b4b34a0b3327892b /drivers/soc/ti/wkup_m3_ipc.c
parent1b1b863a8898ad8348b7dfe812cab26cea9099bf (diff)
downloadlinux-82e46bf71780940a5e060fcb02397ecf7f55e768.tar.xz
soc: ti: 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: Nishanth Menon <nm@ti.com> Link: https://lore.kernel.org/r/20230310144726.1545453-1-robh@kernel.org
Diffstat (limited to 'drivers/soc/ti/wkup_m3_ipc.c')
-rw-r--r--drivers/soc/ti/wkup_m3_ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c
index 343c58ed5896..6970478b40f3 100644
--- a/drivers/soc/ti/wkup_m3_ipc.c
+++ b/drivers/soc/ti/wkup_m3_ipc.c
@@ -681,7 +681,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
dev_warn(dev, "Invalid VTT GPIO(%d) pin\n", temp);
}
- if (of_find_property(np, "ti,set-io-isolation", NULL))
+ if (of_property_read_bool(np, "ti,set-io-isolation"))
wkup_m3_set_io_isolation(m3_ipc);
ret = of_property_read_string(np, "firmware-name",