linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Abel Vesa <abel.vesa@linaro.org>
To: Yangtao Li <frank.li@vivo.com>
Cc: Abel Vesa <abelvesa@kernel.org>, Peng Fan <peng.fan@nxp.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>, Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource()
Date: Tue, 25 Jul 2023 10:30:18 +0300	[thread overview]
Message-ID: <ZL96ClxGXSSJaXTj@linaro.org> (raw)
In-Reply-To: <20230705065313.67043-8-frank.li@vivo.com>

On 23-07-05 14:53:08, Yangtao Li wrote:
> Use devm_platform_ioremap_resource() to simplify code.
> 
> Signed-off-by: Yangtao Li <frank.li@vivo.com>

Reviewed-by: Abel Vesa <abel.vesa@linaro.org>

> ---
>  drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c
> index 5e31a6a24b3a..e0ee9a2572d0 100644
> --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c
> +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c
> @@ -183,7 +183,6 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
>  	unsigned int bit_offset[IMX_LPCG_MAX_CLKS];
>  	struct clk_hw_onecell_data *clk_data;
>  	struct clk_hw **clk_hws;
> -	struct resource *res;
>  	void __iomem *base;
>  	int count;
>  	int idx;
> @@ -193,8 +192,7 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
>  	if (!of_device_is_compatible(np, "fsl,imx8qxp-lpcg"))
>  		return -EINVAL;
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	base = devm_ioremap_resource(&pdev->dev, res);
> +	base = devm_platform_ioremap_resource(pdev, 0);
>  	if (IS_ERR(base))
>  		return PTR_ERR(base);
>  
> -- 
> 2.39.0
> 

  reply	other threads:[~2023-07-25  7:34 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05  6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-05  6:53 ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-08-22 21:54   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 03/13] clk: axm5516: " Yangtao Li
2023-08-22 21:54   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 04/13] clk: bm1880: " Yangtao Li
2023-08-22 21:54   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 05/13] clk: fsl-sai: " Yangtao Li
2023-08-22 21:53   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 06/13] clk: gemini: " Yangtao Li
2023-08-22 21:53   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 07/13] clk: hsdk-pll: " Yangtao Li
2023-08-22 21:53   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: " Yangtao Li
2023-07-25  7:30   ` Abel Vesa [this message]
2023-07-05  6:53 ` [PATCH 09/13] clk: mediatek: " Yangtao Li
2023-08-22 21:53   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-08-22 21:52   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-08-22 21:52   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 12/13] clk: nuvoton: " Yangtao Li
2023-07-05  7:57   ` Jacky Huang
2023-08-22 21:51   ` Stephen Boyd
2023-07-05  6:53 ` [PATCH 13/13] clk: mvebu: " Yangtao Li
2023-08-22 21:51   ` Stephen Boyd
2023-07-11 18:27 ` [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Jernej Škrabec
2023-07-30 22:44 ` Jernej Škrabec
2023-08-14 10:09 ` Abel Vesa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZL96ClxGXSSJaXTj@linaro.org \
    --to=abel.vesa@linaro.org \
    --cc=abelvesa@kernel.org \
    --cc=festevam@gmail.com \
    --cc=frank.li@vivo.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=peng.fan@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=sboyd@kernel.org \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).