[media] Drivers: staging: media: davinci_vpfe: Use resource_size function

Use resource_size function on resource object instead of explicit
computation.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Alexandru Gheorghiu 2013-03-10 08:14:53 -03:00 committed by Mauro Carvalho Chehab
parent 70b8ff3c3d
commit 01c8132303
1 changed files with 1 additions and 2 deletions

View File

@ -1065,7 +1065,6 @@ vpfe_ipipeif_cleanup(struct vpfe_ipipeif_device *ipipeif,
iounmap(ipipeif->ipipeif_base_addr);
res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
if (res)
release_mem_region(res->start,
res->end - res->start + 1);
release_mem_region(res->start, resource_size(res));
}