From 01c8132303ea5ea237cdc85ae7f144f62747910b Mon Sep 17 00:00:00 2001 From: Alexandru Gheorghiu Date: Sun, 10 Mar 2013 08:14:53 -0300 Subject: [PATCH] [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 Acked-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/davinci_vpfe/dm365_ipipeif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c index c8cae51d3d00..b2f4ef84f3db 100644 --- a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c +++ b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c @@ -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)); } -- 2.30.2