Commit 80a50466 authored by zhaoxiao's avatar zhaoxiao Committed by Linus Walleij
Browse files

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: default avatarzhaoxiao <zhaoxiao@uniontech.com>
Link: https://lore.kernel.org/r/20220520052021.25631-1-zhaoxiao@uniontech.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 933adebb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -460,8 +460,7 @@ static int berlin4ct_pinctrl_probe(struct platform_device *pdev)
	if (!rmconfig)
		return -ENOMEM;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	base = devm_ioremap_resource(&pdev->dev, res);
	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
	if (IS_ERR(base))
		return PTR_ERR(base);