aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/renesas
diff options
context:
space:
mode:
authorGravatar Ye Xingchen <ye.xingchen@zte.com.cn> 2023-02-08 09:59:40 +0100
committerGravatar Mauro Carvalho Chehab <mchehab@kernel.org> 2023-03-19 22:53:03 +0100
commit2b64bcb76ac525d712116cd5d0dbb4c663cad63c (patch)
tree224e979341c604a503cf868107a373bf7a5180ae /drivers/media/platform/renesas
parentmedia: dw100: use devm_platform_get_and_ioremap_resource() (diff)
downloadlinux-2b64bcb76ac525d712116cd5d0dbb4c663cad63c.tar.gz
linux-2b64bcb76ac525d712116cd5d0dbb4c663cad63c.tar.bz2
linux-2b64bcb76ac525d712116cd5d0dbb4c663cad63c.zip
media: platform: renesas: use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/renesas')
-rw-r--r--drivers/media/platform/renesas/rcar-isp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/platform/renesas/rcar-isp.c b/drivers/media/platform/renesas/rcar-isp.c
index 10b3474f93a4..a3cfd21f8aae 100644
--- a/drivers/media/platform/renesas/rcar-isp.c
+++ b/drivers/media/platform/renesas/rcar-isp.c
@@ -419,10 +419,7 @@ static const struct media_entity_operations risp_entity_ops = {
static int risp_probe_resources(struct rcar_isp *isp,
struct platform_device *pdev)
{
- struct resource *res;
-
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- isp->base = devm_ioremap_resource(&pdev->dev, res);
+ isp->base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
if (IS_ERR(isp->base))
return PTR_ERR(isp->base);