Skip to content

Commit 8d04dfd

Browse files
robherringUlf Hansson
authored andcommitted
pmdomain: imx: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Message-ID: <20241104190742.276710-1-robh@kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent bc4fc40 commit 8d04dfd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/pmdomain/imx

drivers/pmdomain/imx/gpc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static int imx_gpc_probe(struct platform_device *pdev)
411411
pgc_node = of_get_child_by_name(pdev->dev.of_node, "pgc");
412412

413413
/* bail out if DT too old and doesn't provide the necessary info */
414-
if (!of_property_read_bool(pdev->dev.of_node, "#power-domain-cells") &&
414+
if (!of_property_present(pdev->dev.of_node, "#power-domain-cells") &&
415415
!pgc_node)
416416
return 0;
417417

@@ -511,7 +511,7 @@ static void imx_gpc_remove(struct platform_device *pdev)
511511
pgc_node = of_get_child_by_name(pdev->dev.of_node, "pgc");
512512

513513
/* bail out if DT too old and doesn't provide the necessary info */
514-
if (!of_property_read_bool(pdev->dev.of_node, "#power-domain-cells") &&
514+
if (!of_property_present(pdev->dev.of_node, "#power-domain-cells") &&
515515
!pgc_node)
516516
return;
517517

0 commit comments

Comments
 (0)