Skip to content

Commit d26f059

Browse files
robherringtmlind
authored andcommitted
ARM: OMAP2+: 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> Message-Id: <20230310144655.1540793-1-robh@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent fe15c26 commit d26f059

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/arm/mach-omap2/omap_hwmod.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,11 +2322,11 @@ static int __init _init_mpu_rt_base(struct omap_hwmod *oh, void *data,
23222322
static void __init parse_module_flags(struct omap_hwmod *oh,
23232323
struct device_node *np)
23242324
{
2325-
if (of_find_property(np, "ti,no-reset-on-init", NULL))
2325+
if (of_property_read_bool(np, "ti,no-reset-on-init"))
23262326
oh->flags |= HWMOD_INIT_NO_RESET;
2327-
if (of_find_property(np, "ti,no-idle-on-init", NULL))
2327+
if (of_property_read_bool(np, "ti,no-idle-on-init"))
23282328
oh->flags |= HWMOD_INIT_NO_IDLE;
2329-
if (of_find_property(np, "ti,no-idle", NULL))
2329+
if (of_property_read_bool(np, "ti,no-idle"))
23302330
oh->flags |= HWMOD_NO_IDLE;
23312331
}
23322332

0 commit comments

Comments
 (0)