From: Yangtao Li <frank.li@vivo.com>
To: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>
Cc: Yangtao Li <frank.li@vivo.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 07/13] clk: hsdk-pll: Convert to devm_platform_ioremap_resource()
Date: Wed, 5 Jul 2023 14:53:07 +0800 [thread overview]
Message-ID: <20230705065313.67043-7-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/clk-hsdk-pll.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/clk-hsdk-pll.c b/drivers/clk/clk-hsdk-pll.c
index 33b48ea5ea3d..860519152e5e 100644
--- a/drivers/clk/clk-hsdk-pll.c
+++ b/drivers/clk/clk-hsdk-pll.c
@@ -304,7 +304,6 @@ static const struct clk_ops hsdk_pll_ops = {
static int hsdk_pll_clk_probe(struct platform_device *pdev)
{
int ret;
- struct resource *mem;
const char *parent_name;
unsigned int num_parents;
struct hsdk_pll_clk *pll_clk;
@@ -315,8 +314,7 @@ static int hsdk_pll_clk_probe(struct platform_device *pdev)
if (!pll_clk)
return -ENOMEM;
- mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- pll_clk->regs = devm_ioremap_resource(dev, mem);
+ pll_clk->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(pll_clk->regs))
return PTR_ERR(pll_clk->regs);
--
2.39.0
next prev parent 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 ` [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 ` Yangtao Li [this message]
2023-08-22 21:53 ` [PATCH 07/13] clk: hsdk-pll: " 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-7-frank.li@vivo.com \
--to=frank.li@vivo.com \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.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®