diff options
author | Cai Huoqing <caihuoqing@baidu.com> | 2021-09-01 07:51:08 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:07:49 +0200 |
commit | 9caf7a0a095104496f7cddd9f67009c4c510cf74 (patch) | |
tree | af6e1da1cf9e143768f73e67fcc422f386c044b9 /drivers/media/platform | |
parent | 399e0f9a0d6a77b45d72d3faaac6219a683132b2 (diff) | |
download | linux-stable-9caf7a0a095104496f7cddd9f67009c4c510cf74.tar.gz linux-stable-9caf7a0a095104496f7cddd9f67009c4c510cf74.tar.bz2 linux-stable-9caf7a0a095104496f7cddd9f67009c4c510cf74.zip |
media: coda: Make use of the helper function devm_platform_ioremap_resource()
Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/coda/imx-vdoa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/coda/imx-vdoa.c b/drivers/media/platform/coda/imx-vdoa.c index 8bc0d8371819..6996d4571e36 100644 --- a/drivers/media/platform/coda/imx-vdoa.c +++ b/drivers/media/platform/coda/imx-vdoa.c @@ -301,8 +301,7 @@ static int vdoa_probe(struct platform_device *pdev) return PTR_ERR(vdoa->vdoa_clk); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - vdoa->regs = devm_ioremap_resource(vdoa->dev, res); + vdoa->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(vdoa->regs)) return PTR_ERR(vdoa->regs); |