* [PATCH] clk: qcom: a53-pll: Make use of the helper function devm_platform_ioremap_resource()
@ 2021-09-07 8:48 Cai Huoqing
2021-09-14 21:39 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Cai Huoqing @ 2021-09-07 8:48 UTC (permalink / raw)
To: caihuoqing
Cc: Andy Gross, Bjorn Andersson, Michael Turquette, Stephen Boyd,
linux-arm-msm, linux-clk, linux-kernel
Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
drivers/clk/qcom/a53-pll.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c
index 9e6decb9c26f..329d2c5356d8 100644
--- a/drivers/clk/qcom/a53-pll.c
+++ b/drivers/clk/qcom/a53-pll.c
@@ -90,7 +90,6 @@ static int qcom_a53pll_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct device_node *np = dev->of_node;
struct regmap *regmap;
- struct resource *res;
struct clk_pll *pll;
void __iomem *base;
struct clk_init_data init = { };
@@ -100,8 +99,7 @@ static int qcom_a53pll_probe(struct platform_device *pdev)
if (!pll)
return -ENOMEM;
- 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);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: qcom: a53-pll: Make use of the helper function devm_platform_ioremap_resource()
2021-09-07 8:48 [PATCH] clk: qcom: a53-pll: Make use of the helper function devm_platform_ioremap_resource() Cai Huoqing
@ 2021-09-14 21:39 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2021-09-14 21:39 UTC (permalink / raw)
To: caihuoqing
Cc: Andy Gross, Bjorn Andersson, Michael Turquette, linux-arm-msm,
linux-clk, linux-kernel
Quoting Cai Huoqing (2021-09-07 01:48:43)
> Use the devm_platform_ioremap_resource() helper instead of
> calling platform_get_resource() and devm_ioremap_resource()
> separately
>
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-14 21:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 8:48 [PATCH] clk: qcom: a53-pll: Make use of the helper function devm_platform_ioremap_resource() Cai Huoqing
2021-09-14 21:39 ` Stephen Boyd
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).