Skip to content

Commit 80a5046

Browse files
zhaoxiaoLinus Walleij
authored andcommitted
pinctrl: berlin: bg4ct: Use devm_platform_*ioremap_resource() APIs
Use devm_platform_get_and_ioremap_resource() and devm_platform_ioremap_resource() APIs instead of their open coded analogues. Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com> Link: https://lore.kernel.org/r/20220520052021.25631-1-zhaoxiao@uniontech.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 933adeb commit 80a5046

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/pinctrl/berlin/berlin-bg4ct.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,7 @@ static int berlin4ct_pinctrl_probe(struct platform_device *pdev)
460460
if (!rmconfig)
461461
return -ENOMEM;
462462

463-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
464-
base = devm_ioremap_resource(&pdev->dev, res);
463+
base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
465464
if (IS_ERR(base))
466465
return PTR_ERR(base);
467466

0 commit comments

Comments
 (0)