diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-10 11:14:53 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 16:50:00 (GMT) |
commit | 01c8132303ea5ea237cdc85ae7f144f62747910b (patch) | |
tree | 81d865a5b7547d9c50d46aa2f1faa747f60ce1c5 /drivers/staging | |
parent | 70b8ff3c3d454aa5fd8b478fd829b6bd3a4345db (diff) | |
download | linux-fsl-qoriq-01c8132303ea5ea237cdc85ae7f144f62747910b.tar.xz |
[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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/davinci_vpfe/dm365_ipipeif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c index c8cae51..b2f4ef8 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)); } |