clk: qcom: hfpll: use devm_platform_get_and_ioremap_resource()
Subsystems (3)
PATCH 1/1 clk: qcom: hfpll: use devm_platform_get_and_ioremap_resource()
From: Minghao Chi <[email protected]>
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does.
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by ye xingchen <[email protected]>
--- drivers/clk/qcom/hfpll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clk/qcom/hfpll.c +1 -3
@@ -47,7 +47,6 @@ static const struct regmap_config hfpll_regmap_config = {static int qcom_hfpll_probe (struct platform_device *pdev) { -struct resource *res;struct device *dev = &pdev->dev;void __iomem *base;struct regmap *regmap;
@@ -70,8 +69,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev)if (!h)return -ENOMEM ; - res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); - base =devm_ioremap_resource (dev, res); + base =devm_platform_get_and_ioremap_resource (pdev,0 ,NULL );if (IS_ERR (base))return PTR_ERR (base);
Signature · 1 line
2.25.1
Quoted 8 lines · On Thu, 17 Nov 2022 14:03:34 +0800 (CST), [email protected] wrote:
From: Minghao Chi <[email protected]>
Convert
platform_get_resource(),devm_ioremap_resource()to a single call todevm_platform_get_and_ioremap_resource(), as this is exactly what this function does.[...]
Applied, thanks!
[1/1] clk: qcom: hfpll: use devm_platform_get_and_ioremap_resource()
commit: 0c44be063948bb02918c9ef5332e0e65daa94fc7
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>