mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yangtao Li <frank.li@vivo.com>
To: "Michael Turquette" <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Andreas Färber" <afaerber@suse.de>,
	"Manivannan Sadhasivam" <mani@kernel.org>
Cc: Yangtao Li <frank.li@vivo.com>,
	linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource()
Date: Wed,  5 Jul 2023 14:53:02 +0800	[thread overview]
Message-ID: <20230705065313.67043-2-frank.li@vivo.com> (raw)
In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com>

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 drivers/clk/actions/owl-common.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clk/actions/owl-common.c b/drivers/clk/actions/owl-common.c
index 4de97cc7cb54..9e98e8a92ad7 100644
--- a/drivers/clk/actions/owl-common.c
+++ b/drivers/clk/actions/owl-common.c
@@ -43,10 +43,8 @@ int owl_clk_regmap_init(struct platform_device *pdev,
 {
 	void __iomem *base;
 	struct regmap *regmap;
-	struct resource *res;
 
-	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-05  6:54 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 ` Yangtao Li [this message]
2023-08-22 21:54   ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() 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
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=20230705065313.67043-2-frank.li@vivo.com \
    --to=frank.li@vivo.com \
    --cc=afaerber@suse.de \
    --cc=linux-actions@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@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

all inboxes | Powered by JetHome®