diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-10 07:14:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 12:50:00 -0400 |
commit | 01c8132303ea5ea237cdc85ae7f144f62747910b (patch) | |
tree | 81d865a5b7547d9c50d46aa2f1faa747f60ce1c5 | |
parent | 70b8ff3c3d454aa5fd8b478fd829b6bd3a4345db (diff) |
[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>
-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 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, | |||
1065 | iounmap(ipipeif->ipipeif_base_addr); | 1065 | iounmap(ipipeif->ipipeif_base_addr); |
1066 | res = platform_get_resource(pdev, IORESOURCE_MEM, 3); | 1066 | res = platform_get_resource(pdev, IORESOURCE_MEM, 3); |
1067 | if (res) | 1067 | if (res) |
1068 | release_mem_region(res->start, | 1068 | release_mem_region(res->start, resource_size(res)); |
1069 | res->end - res->start + 1); | ||
1070 | 1069 | ||
1071 | } | 1070 | } |