* [patch 148/177] drivers/mmc/host/omap.c: use resource_size()
@ 2011-03-22 23:34 akpm
2011-03-23 7:40 ` Kishore Kadiyala
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2011-03-22 23:34 UTC (permalink / raw)
To: torvalds; +Cc: akpm, cjb, jarkko.lavinen, linux-mmc, tony
From: Chris Ball <cjb@laptop.org>
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>
---
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_size drivers/mmc/host/omap.c
--- a/drivers/mmc/host/omap.c~drivers-mmc-host-omapc-use-resource_size
+++ a/drivers/mmc/host/omap.c
@@ -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;
}
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 148/177] drivers/mmc/host/omap.c: use resource_size()
2011-03-22 23:34 [patch 148/177] drivers/mmc/host/omap.c: use resource_size() akpm
@ 2011-03-23 7:40 ` Kishore Kadiyala
0 siblings, 0 replies; 2+ messages in thread
From: Kishore Kadiyala @ 2011-03-23 7:40 UTC (permalink / raw)
To: akpm; +Cc: torvalds, cjb, jarkko.lavinen, linux-mmc, tony
On Wed, Mar 23, 2011 at 5:04 AM, <akpm@linux-foundation.org> wrote:
> From: Chris Ball <cjb@laptop.org>
>
> 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>
Acked-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
> ---
>
> 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_size drivers/mmc/host/omap.c
> --- a/drivers/mmc/host/omap.c~drivers-mmc-host-omapc-use-resource_size
> +++ a/drivers/mmc/host/omap.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-23 7:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 23:34 [patch 148/177] drivers/mmc/host/omap.c: use resource_size() akpm
2011-03-23 7:40 ` Kishore Kadiyala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).