Skip to content

Commit

Permalink
[media] Drivers: staging: media: davinci_vpfe: Use resource_size func…
Browse files Browse the repository at this point in the history
…tion

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>
  • Loading branch information
Alexandru Gheorghiu authored and Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 70b8ff3 commit 01c8132
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}

0 comments on commit 01c8132

Please sign in to comment.