summaryrefslogtreecommitdiff
path: root/drivers/media/video/davinci
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2011-08-06 04:48:32 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-21 14:10:34 -0300
commitfbc09d3aa1510552e36d9bae05def25d039a98f2 (patch)
treee304c138ddc96e1ef4997f9e9e9d6b2423ca5204 /drivers/media/video/davinci
parent096b703fb6cc9c9e4a188b80932c467b96985fcf (diff)
downloadlinux-3.10-fbc09d3aa1510552e36d9bae05def25d039a98f2.tar.gz
linux-3.10-fbc09d3aa1510552e36d9bae05def25d039a98f2.tar.bz2
linux-3.10-fbc09d3aa1510552e36d9bae05def25d039a98f2.zip
[media] davinci vpbe: Use resource_size()
Use resource_size function on resource object instead of explicit computation. The semantic patch that makes this output is available in scripts/coccinelle/api/resource_size.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/davinci')
-rw-r--r--drivers/media/video/davinci/vpbe_osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/davinci/vpbe_osd.c b/drivers/media/video/davinci/vpbe_osd.c
index 5352884998f..ceccf430251 100644
--- a/drivers/media/video/davinci/vpbe_osd.c
+++ b/drivers/media/video/davinci/vpbe_osd.c
@@ -1162,7 +1162,7 @@ static int osd_probe(struct platform_device *pdev)
goto free_mem;
}
osd->osd_base_phys = res->start;
- osd->osd_size = res->end - res->start + 1;
+ osd->osd_size = resource_size(res);
if (!request_mem_region(osd->osd_base_phys, osd->osd_size,
MODULE_NAME)) {
dev_err(osd->dev, "Unable to reserve OSD MMIO region\n");