[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFreU6wVnsOwz9nstiQ=0sSKN=xtGOaqotwES5UByxQeKw@mail.gmail.com>
Date: Tue, 12 Nov 2024 16:56:31 +0100
From: Ulf Hansson <ulf.hansson@...aro.org>
To: "Rob Herring (Arm)" <robh@...nel.org>
Cc: Shawn Guo <shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>, Fabio Estevam <festevam@...il.com>, linux-pm@...r.kernel.org,
imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pmdomain: imx: Use of_property_present() for non-boolean properties
On Mon, 4 Nov 2024 at 20:07, Rob Herring (Arm) <robh@...nel.org> wrote:
>
> 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@...nel.org>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/pmdomain/imx/gpc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pmdomain/imx/gpc.c b/drivers/pmdomain/imx/gpc.c
> index 80a4dcc77199..fbb4c90b72c4 100644
> --- a/drivers/pmdomain/imx/gpc.c
> +++ b/drivers/pmdomain/imx/gpc.c
> @@ -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;
>
> --
> 2.45.2
>
Powered by blists - more mailing lists