drivers/mmc/host/omap_hsmmc.c: use resource_size()
Subsystems (2)
PATCH 149/177 drivers/mmc/host/omap_hsmmc.c: use resource_size()
From: Chris Ball <[email protected]>
Use resource_size().
Signed-off-by Chris Ball <[email protected]>
Cc Madhusudhan Chikkature <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/mmc/host/omap_hsmmc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/mmc/host/omap_hsmmc.c renamed from drivers/mmc/host/omap_hsmmc.c~drivers-mmc-host-omap_hsmmcc-use-resource_size +3 -4
@@ -2047,8 +2047,7 @@ static int __init omap_hsmmc_probe(struc res->start += pdata->reg_offset; res->end += pdata->reg_offset; - res =request_mem_region (res->start, res->end - res->start +1 , - pdev->name); + res =request_mem_region (res->start,resource_size (res), pdev->name);if (res ==NULL )return -EBUSY ;
@@ -2287,7 +2286,7 @@ err1: err_alloc:omap_hsmmc_gpio_free (pdata); err: -release_mem_region (res->start, res->end - res->start +1 ); +release_mem_region (res->start,resource_size (res));return ret; }
@@ -2324,7 +2323,7 @@ static int omap_hsmmc_remove(struct plat res =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (res) -release_mem_region (res->start, res->end - res->start +1 ); +release_mem_region (res->start,resource_size (res));platform_set_drvdata (pdev,NULL );return 0 ;
_
Quoted 8 lines · On Wed, Mar 23, 2011 at 5:04 AM, <[email protected]> wrote:
From: Chris Ball <[email protected]>
Use
resource_size().Signed-off-by Chris Ball <[email protected]>Cc Madhusudhan Chikkature <[email protected]>Cc <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Feel free to add
Acked-by Kishore Kadiyala <[email protected]>
Quoted 42 lines
---
drivers/mmc/host/omap_hsmmc.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)diff -puN
drivers/mmc/host/omap_hsmmc.c~drivers-mmc-host-omap_hsmmcc-use-resource_sizedrivers/mmc/host/omap_hsmmc.cdrivers/mmc/host/omap_hsmmc.c renamed from drivers/mmc/host/omap_hsmmc.c~drivers-mmc-host-omap_hsmmcc-use-resource_size +1
-2@@ -2047,8 +2047,7 @@ static int __init omap_hsmmc_probe(struc res->start += pdata->reg_offset; res->end += pdata->reg_offset; - res = request_mem_region(res->start, res->end - res->start + 1, - pdev->name); + res = request_mem_region(res->start, resource_size(res), pdev->name); if (res == NULL) return -EBUSY;@@ -2287,7 +2286,7 @@ err1:err_alloc:
omap_hsmmc_gpio_free(pdata);
err:
-release_mem_region(res->start, res->end - res->start + 1);
+release_mem_region(res->start, resource_size(res)); return ret;
}drivers/mmc/host/omap_hsmmc.c renamed from drivers/mmc/host/omap_hsmmc.c~drivers-mmc-host-omap_hsmmcc-use-resource_size +1
-1@@ -2324,7 +2323,7 @@ static int omap_hsmmc_remove(struct plat res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (res) - release_mem_region(res->start, res->end - res->start + 1); + release_mem_region(res->start, resource_size(res)); platform_set_drvdata(pdev, NULL); return 0;_
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html