drivers/mmc/host/omap.c: use resource_size()
Subsystems (2)
PATCH 148/177 drivers/mmc/host/omap.c: use resource_size()
From: Chris Ball <[email protected]>
Signed-off-by Chris Ball <[email protected]>
Cc Jarkko Lavinen <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/mmc/host/omap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/mmc/host/omap.c renamed from drivers/mmc/host/omap.c~drivers-mmc-host-omapc-use-resource_size +3 -3
@@ -1417,7 +1417,7 @@ static int __init mmc_omap_probe(structif (res ==NULL || irq <0 )return -ENXIO ; - res =request_mem_region (res->start, res->end - res->start +1 , + res =request_mem_region (res->start,resource_size (res), pdev->name);if (res ==NULL )return -EBUSY ;
@@ -1457,7 +1457,7 @@ static int __init mmc_omap_probe(struct host->irq = irq; host->phys_base = host->mem_res->start; - host->virt_base =ioremap (res->start, res->end - res->start +1 ); + host->virt_base =ioremap (res->start,resource_size (res));if (!host->virt_base) goto err_ioremap;
@@ -1514,7 +1514,7 @@ err_free_mmc_host: err_ioremap:kfree (host); err_free_mem_region: -release_mem_region (res->start, res->end - res->start +1 ); +release_mem_region (res->start,resource_size (res));return ret; }
_
Quoted 7 lines · On Wed, Mar 23, 2011 at 5:04 AM, <[email protected]> wrote:
From: Chris Ball <[email protected]>
Signed-off-by Chris Ball <[email protected]>Cc Jarkko Lavinen <[email protected]>Cc Tony Lindgren <[email protected]>Cc <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Acked-by Kishore Kadiyala <[email protected]>
Quoted 41 lines
---
drivers/mmc/host/omap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)diff -puN
drivers/mmc/host/omap.c~drivers-mmc-host-omapc-use-resource_sizedrivers/mmc/host/omap.cdrivers/mmc/host/omap.c renamed from drivers/mmc/host/omap.c~drivers-mmc-host-omapc-use-resource_size +2
-2@@ -1417,7 +1417,7 @@ static int __init mmc_omap_probe(struct if (res == NULL || irq < 0) return -ENXIO; - res = request_mem_region(res->start, res->end - res->start + 1, + res = request_mem_region(res->start, resource_size(res), pdev->name); if (res == NULL) return -EBUSY;@@ -1457,7 +1457,7 @@ static int __init mmc_omap_probe(struct host->irq = irq; host->phys_base = host->mem_res->start; - host->virt_base = ioremap(res->start, res->end - res->start + 1); + host->virt_base = ioremap(res->start, resource_size(res)); if (!host->virt_base) goto err_ioremap;@@ -1514,7 +1514,7 @@ err_free_mmc_host:err_ioremap:
kfree(host);
err_free_mem_region:
-release_mem_region(res->start, res->end - res->start + 1);
+release_mem_region(res->start, resource_size(res)); return ret;
}_
--
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