From: Alexandru Gheorghiu Date: Sun, 10 Mar 2013 11:14:53 +0000 (-0300) Subject: [media] Drivers: staging: media: davinci_vpfe: Use resource_size function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01c8132303ea5ea237cdc85ae7f144f62747910b;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 --- 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)); }