summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/berlin
diff options
context:
space:
mode:
authorzhaoxiao <zhaoxiao@uniontech.com>2022-05-20 08:20:21 +0300
committerLinus Walleij <linus.walleij@linaro.org>2022-05-22 23:45:47 +0300
commit80a504669c93b3c25e8f705d876bf9fd92ddab47 (patch)
tree1e0e525efad316a2aaff6c72e78ac9f48607b5fc /drivers/pinctrl/berlin
parent933adebbbd2f3160451b55f915133cd4d1c4d8fd (diff)
downloadlinux-80a504669c93b3c25e8f705d876bf9fd92ddab47.tar.xz
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>
Diffstat (limited to 'drivers/pinctrl/berlin')
-rw-r--r--drivers/pinctrl/berlin/berlin-bg4ct.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/berlin/berlin-bg4ct.c b/drivers/pinctrl/berlin/berlin-bg4ct.c
index 6a7fe929a68b..3026a3b3da2d 100644
--- a/drivers/pinctrl/berlin/berlin-bg4ct.c
+++ b/drivers/pinctrl/berlin/berlin-bg4ct.c
@@ -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);