mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
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>
This commit is contained in:
parent
bc4fc409f4
commit
8d04dfdbc3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user