projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183a1f1
)
clk: socfpga: agilex: Convert to devm_platform_ioremap_resource()
author
Yangtao Li
<frank.li@vivo.com>
Wed, 5 Jul 2023 06:53:11 +0000
(14:53 +0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Tue, 22 Aug 2023 21:28:34 +0000
(14:28 -0700)
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link:
https://lore.kernel.org/r/20230705065313.67043-11-frank.li@vivo.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/socfpga/clk-agilex.c
patch
|
blob
|
history
diff --git
a/drivers/clk/socfpga/clk-agilex.c
b/drivers/clk/socfpga/clk-agilex.c
index
5c972e4
..
6b65a74
100644
(file)
--- a/
drivers/clk/socfpga/clk-agilex.c
+++ b/
drivers/clk/socfpga/clk-agilex.c
@@
-457,12
+457,10
@@
static int agilex_clkmgr_init(struct platform_device *pdev)
struct device_node *np = pdev->dev.of_node;
struct device *dev = &pdev->dev;
struct stratix10_clock_data *clk_data;
- struct resource *res;
void __iomem *base;
int i, num_clks;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);