[PATCH] clk: samsung: s5pv210-audss: Make use of the helper function devm_platform_ioremap_resource()

Subsystems: arm/samsung s3c, s5p and exynos arm architectures, common clk framework, samsung soc clock drivers, the rest

STALE1852d LANDED

Landed in mainline as 1d26eaeec37a on 2021-09-13.

3 messages, 3 authors, 2021-09-13 · open the first message on its own page

[PATCH] clk: samsung: s5pv210-audss: Make use of the helper function devm_platform_ioremap_resource()

From: Cai Huoqing <hidden>
Date: 2021-09-07 08:51:37

Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately

Signed-off-by: Cai Huoqing <redacted>
---
 drivers/clk/samsung/clk-s5pv210-audss.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/samsung/clk-s5pv210-audss.c b/drivers/clk/samsung/clk-s5pv210-audss.c
index a7827a120695..b31c00ea331f 100644
--- a/drivers/clk/samsung/clk-s5pv210-audss.c
+++ b/drivers/clk/samsung/clk-s5pv210-audss.c
@@ -63,15 +63,13 @@ static struct syscore_ops s5pv210_audss_clk_syscore_ops = {
 static int s5pv210_audss_clk_probe(struct platform_device *pdev)
 {
 	int i, ret = 0;
-	struct resource *res;
 	const char *mout_audss_p[2];
 	const char *mout_i2s_p[3];
 	const char *hclk_p;
 	struct clk_hw **clk_table;
 	struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	reg_base = devm_ioremap_resource(&pdev->dev, res);
+	reg_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(reg_base))
 		return PTR_ERR(reg_base);
 
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] clk: samsung: s5pv210-audss: Make use of the helper function devm_platform_ioremap_resource()

From: Krzysztof Kozlowski <hidden>
Date: 2021-09-07 12:28:47

On 07/09/2021 10:51, Cai Huoqing wrote:
Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately

Signed-off-by: Cai Huoqing <redacted>
---
 drivers/clk/samsung/clk-s5pv210-audss.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Reviewed-by: Krzysztof Kozlowski <redacted>


Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] clk: samsung: s5pv210-audss: Make use of the helper function devm_platform_ioremap_resource()

From: Sylwester Nawrocki <s.nawrocki@samsung.com>
Date: 2021-09-13 16:15:19

On 07.09.2021 10:51, Cai Huoqing wrote:
Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately
Thanks for the patch, I have applied it with summary line shortened to
"clk: samsung: s5pv210-audss: Make use of devm_platform_ioremap_resource()".

-- 
Regards,
Sylwester

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help