diff options
author | Fabio Estevam <festevam@gmail.com> | 2019-06-05 14:05:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-21 17:22:19 -0400 |
commit | 56202c0cbe4fdeaeced6f5d2785b8a7ef4332905 (patch) | |
tree | c220daabebe6697cc8afa9e5c105410df14c11ba /drivers/media | |
parent | 1a9ade50b82fd941d23473015752a56aa9812e37 (diff) | |
download | linux-stable-56202c0cbe4fdeaeced6f5d2785b8a7ef4332905.tar.gz linux-stable-56202c0cbe4fdeaeced6f5d2785b8a7ef4332905.tar.bz2 linux-stable-56202c0cbe4fdeaeced6f5d2785b8a7ef4332905.zip |
media: coda: Use devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify the code a bit.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 751b0be1c2ea..de64040dad8a 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -2814,7 +2814,6 @@ static int coda_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct gen_pool *pool; struct coda_dev *dev; - struct resource *res; int ret, irq; dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); @@ -2846,8 +2845,7 @@ static int coda_probe(struct platform_device *pdev) } /* Get memory for physical registers */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dev->regs_base = devm_ioremap_resource(&pdev->dev, res); + dev->regs_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dev->regs_base)) return PTR_ERR(dev->regs_base); |