]> Git Repo - J-linux.git/commitdiff
pmdomain: imx: Use of_property_present() for non-boolean properties
authorRob Herring (Arm) <[email protected]>
Mon, 4 Nov 2024 19:07:42 +0000 (13:07 -0600)
committerUlf Hansson <[email protected]>
Tue, 12 Nov 2024 18:46:51 +0000 (19:46 +0100)
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) <[email protected]>
Message-ID: <20241104190742[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
drivers/pmdomain/imx/gpc.c

index 80a4dcc77199cfa98f6533c20a4f1cbf0286a7b3..fbb4c90b72c4976809d37d78fc85a15896f63bd7 100644 (file)
@@ -411,7 +411,7 @@ static int imx_gpc_probe(struct platform_device *pdev)
        pgc_node = of_get_child_by_name(pdev->dev.of_node, "pgc");
 
        /* bail out if DT too old and doesn't provide the necessary info */
-       if (!of_property_read_bool(pdev->dev.of_node, "#power-domain-cells") &&
+       if (!of_property_present(pdev->dev.of_node, "#power-domain-cells") &&
            !pgc_node)
                return 0;
 
@@ -511,7 +511,7 @@ static void imx_gpc_remove(struct platform_device *pdev)
        pgc_node = of_get_child_by_name(pdev->dev.of_node, "pgc");
 
        /* bail out if DT too old and doesn't provide the necessary info */
-       if (!of_property_read_bool(pdev->dev.of_node, "#power-domain-cells") &&
+       if (!of_property_present(pdev->dev.of_node, "#power-domain-cells") &&
            !pgc_node)
                return;
 
This page took 0.067619 seconds and 4 git commands to generate.