From: Kishore Kadiyala <kishorek.kadiyala@gmail.com>
To: akpm@linux-foundation.org
Cc: torvalds@linux-foundation.org, cjb@laptop.org,
jarkko.lavinen@nokia.com, linux-mmc@vger.kernel.org,
tony@atomide.com
Subject: Re: [patch 148/177] drivers/mmc/host/omap.c: use resource_size()
Date: Wed, 23 Mar 2011 13:10:27 +0530 [thread overview]
Message-ID: <AANLkTi=ftyiFayk+=reDcoZbsDbxi8z6KwGRL9EuviPw@mail.gmail.com> (raw)
In-Reply-To: <201103222334.p2MNYfMe002438@imap1.linux-foundation.org>
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
>
prev parent reply other threads:[~2011-03-23 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=ftyiFayk+=reDcoZbsDbxi8z6KwGRL9EuviPw@mail.gmail.com' \
--to=kishorek.kadiyala@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cjb@laptop.org \
--cc=jarkko.lavinen@nokia.com \
--cc=linux-mmc@vger.kernel.org \
--cc=tony@atomide.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).