mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
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>
This commit is contained in:
parent
fe15c26ee2
commit
d26f05931f
@ -2322,11 +2322,11 @@ static int __init _init_mpu_rt_base(struct omap_hwmod *oh, void *data,
|
|||||||
static void __init parse_module_flags(struct omap_hwmod *oh,
|
static void __init parse_module_flags(struct omap_hwmod *oh,
|
||||||
struct device_node *np)
|
struct device_node *np)
|
||||||
{
|
{
|
||||||
if (of_find_property(np, "ti,no-reset-on-init", NULL))
|
if (of_property_read_bool(np, "ti,no-reset-on-init"))
|
||||||
oh->flags |= HWMOD_INIT_NO_RESET;
|
oh->flags |= HWMOD_INIT_NO_RESET;
|
||||||
if (of_find_property(np, "ti,no-idle-on-init", NULL))
|
if (of_property_read_bool(np, "ti,no-idle-on-init"))
|
||||||
oh->flags |= HWMOD_INIT_NO_IDLE;
|
oh->flags |= HWMOD_INIT_NO_IDLE;
|
||||||
if (of_find_property(np, "ti,no-idle", NULL))
|
if (of_property_read_bool(np, "ti,no-idle"))
|
||||||
oh->flags |= HWMOD_NO_IDLE;
|
oh->flags |= HWMOD_NO_IDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user