Skip to content

Commit 94f7a2c

Browse files
pcercueilinusw
authored andcommitted
pinctrl: ingenic: Use devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() instead of platform_get_resource + devm_ioremap_resource. Signed-off-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent f831f93 commit 94f7a2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pinctrl/pinctrl-ingenic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,8 +2332,7 @@ static int __init ingenic_pinctrl_probe(struct platform_device *pdev)
23322332
if (!jzpc)
23332333
return -ENOMEM;
23342334

2335-
base = devm_ioremap_resource(dev,
2336-
platform_get_resource(pdev, IORESOURCE_MEM, 0));
2335+
base = devm_platform_ioremap_resource(pdev, 0);
23372336
if (IS_ERR(base))
23382337
return PTR_ERR(base);
23392338

0 commit comments

Comments
 (0)