Skip to content

Commit 6568cb4

Browse files
a3fstorulf
authored andcommitted
pmdomain: imx: gpcv2: use proper helper for property detection
Starting with commit c141ecc ("of: Warn when of_property_read_bool() is used on non-boolean properties"), probing the gpcv2 device on i.MX8M SoCs leads to warnings when LOCKDEP is enabled. Fix this by checking property presence with of_property_present as intended. Signed-off-by: Ahmad Fatoum <[email protected]> Link: https://lore.kernel.org/r/20250218-gpcv2-of-property-present-v1-1-3bb1a9789654@pengutronix.de Signed-off-by: Ulf Hansson <[email protected]>
1 parent 6d137f8 commit 6568cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pmdomain/imx/gpcv2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ static int imx_pgc_domain_probe(struct platform_device *pdev)
13611361
}
13621362

13631363
if (IS_ENABLED(CONFIG_LOCKDEP) &&
1364-
of_property_read_bool(domain->dev->of_node, "power-domains"))
1364+
of_property_present(domain->dev->of_node, "power-domains"))
13651365
lockdep_set_subclass(&domain->genpd.mlock, 1);
13661366

13671367
ret = of_genpd_add_provider_simple(domain->dev->of_node,

0 commit comments

Comments
 (0)