Skip to content

Commit

Permalink
[media] coda: No need to check the return value of platform_get_resou…
Browse files Browse the repository at this point in the history
…rce()

When using devm_ioremap_resource(), we do not need to check the return value of
platform_get_resource(), so just remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Fabio Estevam authored and Mauro Carvalho Chehab committed Aug 24, 2013
1 parent 79830db commit edcaa49
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/media/platform/coda.c
Original file line number Diff line number Diff line change
Expand Up @@ -3154,11 +3154,6 @@ static int coda_probe(struct platform_device *pdev)

/* Get memory for physical registers */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res == NULL) {
dev_err(&pdev->dev, "failed to get memory region resource\n");
return -ENOENT;
}

dev->regs_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(dev->regs_base))
return PTR_ERR(dev->regs_base);
Expand Down

0 comments on commit edcaa49

Please sign in to comment.