summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/hi655x-pmic.c
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-07-06 19:39:39 +0800
committerLee Jones <lee@kernel.org>2023-08-18 21:48:00 +0100
commit2459f4dfe5529f8b847f452473e2da08a8fc9fe5 (patch)
tree4e0388d4f498660ac184e3195edd33106691db27 /drivers/mfd/hi655x-pmic.c
parent4c0104bf903fa9be39a7e1227eef8bca81c17bca (diff)
downloadlinux-stable-2459f4dfe5529f8b847f452473e2da08a8fc9fe5.tar.gz
linux-stable-2459f4dfe5529f8b847f452473e2da08a8fc9fe5.tar.bz2
linux-stable-2459f4dfe5529f8b847f452473e2da08a8fc9fe5.zip
mfd: hi655x-pmic: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> Link: https://lore.kernel.org/r/20230706113939.1178-7-frank.li@vivo.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/hi655x-pmic.c')
-rw-r--r--drivers/mfd/hi655x-pmic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c
index a58e42ddcd0c..98ae40ee3f05 100644
--- a/drivers/mfd/hi655x-pmic.c
+++ b/drivers/mfd/hi655x-pmic.c
@@ -100,8 +100,7 @@ static int hi655x_pmic_probe(struct platform_device *pdev)
return -ENOMEM;
pmic->dev = dev;
- pmic->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, pmic->res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);