Skip to content

Commit 47b4ec0

Browse files
bbkzzbebarino
authored andcommitted
clk: actions: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent ae30512 commit 47b4ec0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clk/actions/owl-common.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ int owl_clk_regmap_init(struct platform_device *pdev,
4141
{
4242
void __iomem *base;
4343
struct regmap *regmap;
44-
struct resource *res;
4544

46-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
47-
base = devm_ioremap_resource(&pdev->dev, res);
45+
base = devm_platform_ioremap_resource(pdev, 0);
4846
if (IS_ERR(base))
4947
return PTR_ERR(base);
5048

0 commit comments

Comments
 (0)