diff options
author | Chris Ball <cjb@laptop.org> | 2011-03-22 19:34:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 20:44:15 -0400 |
commit | 2092014df6e62b3ddfe8b6199da98cacfc055e23 (patch) | |
tree | c7498da5bd17bd7f73562fde3631fe194c034e8b /drivers/mmc | |
parent | e359dc24d32e58c795fc339cb3e89ea6330fceae (diff) |
drivers/mmc/host/omap.c: use resource_size()
Signed-off-by: Chris Ball <cjb@laptop.org>
Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/omap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 379d2ffe4c87..2e032f0e8cf4 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c | |||
@@ -1417,7 +1417,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev) | |||
1417 | if (res == NULL || irq < 0) | 1417 | if (res == NULL || irq < 0) |
1418 | return -ENXIO; | 1418 | return -ENXIO; |
1419 | 1419 | ||
1420 | res = request_mem_region(res->start, res->end - res->start + 1, | 1420 | res = request_mem_region(res->start, resource_size(res), |
1421 | pdev->name); | 1421 | pdev->name); |
1422 | if (res == NULL) | 1422 | if (res == NULL) |
1423 | return -EBUSY; | 1423 | return -EBUSY; |
@@ -1457,7 +1457,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev) | |||
1457 | 1457 | ||
1458 | host->irq = irq; | 1458 | host->irq = irq; |
1459 | host->phys_base = host->mem_res->start; | 1459 | host->phys_base = host->mem_res->start; |
1460 | host->virt_base = ioremap(res->start, res->end - res->start + 1); | 1460 | host->virt_base = ioremap(res->start, resource_size(res)); |
1461 | if (!host->virt_base) | 1461 | if (!host->virt_base) |
1462 | goto err_ioremap; | 1462 | goto err_ioremap; |
1463 | 1463 | ||
@@ -1514,7 +1514,7 @@ err_free_mmc_host: | |||
1514 | err_ioremap: | 1514 | err_ioremap: |
1515 | kfree(host); | 1515 | kfree(host); |
1516 | err_free_mem_region: | 1516 | err_free_mem_region: |
1517 | release_mem_region(res->start, res->end - res->start + 1); | 1517 | release_mem_region(res->start, resource_size(res)); |
1518 | return ret; | 1518 | return ret; |
1519 | } | 1519 | } |
1520 | 1520 | ||