summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-07-06 13:10:58 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-07-19 13:57:49 +0300
commitfd130042dfb899318fac4753460bd87db5c77605 (patch)
tree73dd64da82a8764b475facc5a54f1c21af9ad582 /drivers
parentb8cf18bc4eadf4522b4937b3185dfa331d039e70 (diff)
downloadlinux-fd130042dfb899318fac4753460bd87db5c77605.tar.xz
media: fimc-core: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/samsung/exynos4-is/fimc-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-core.c b/drivers/media/platform/samsung/exynos4-is/fimc-core.c
index 976b4f747ad4..4e8059f100f5 100644
--- a/drivers/media/platform/samsung/exynos4-is/fimc-core.c
+++ b/drivers/media/platform/samsung/exynos4-is/fimc-core.c
@@ -924,7 +924,6 @@ static int fimc_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
u32 lclk_freq = 0;
struct fimc_dev *fimc;
- struct resource *res;
int ret = 0;
int irq;
@@ -961,8 +960,7 @@ static int fimc_probe(struct platform_device *pdev)
return PTR_ERR(fimc->sysreg);
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- fimc->regs = devm_ioremap_resource(dev, res);
+ fimc->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(fimc->regs))
return PTR_ERR(fimc->regs);