From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Chris Ball <cjb@laptop.org>
Cc: H Hartley Sweeten <hartleys@visionengravers.com>,
akpm@linux-foundation.org, linux-mmc@vger.kernel.org,
haavard.skinnemoen@atmel.com
Subject: Re: [PATCH RESEND] atmel-mci.c: use resource size()
Date: Mon, 30 Aug 2010 09:47:07 +0200 [thread overview]
Message-ID: <4C7B61FB.6060301@atmel.com> (raw)
In-Reply-To: <20100827190955.GE20407@void.printf.net>
Le 27/08/2010 21:09, Chris Ball :
> From: H Hartley Sweeten <hsweeten@visionengravers.com>
> Date: Mon, 14 Dec 2009 14:11:56 -0500
>
> Use resource_size().
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> [cjb: rebased patch against Linus]
> Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> drivers/mmc/host/atmel-mci.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
> index 95ef864..1d4e546 100644
> --- a/drivers/mmc/host/atmel-mci.c
> +++ b/drivers/mmc/host/atmel-mci.c
> @@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
> }
>
> ret = -ENOMEM;
> - host->regs = ioremap(regs->start, regs->end - regs->start + 1);
> + host->regs = ioremap(regs->start, resource_size(regs));
> if (!host->regs)
> goto err_ioremap;
>
--
Nicolas Ferre
prev parent reply other threads:[~2010-08-30 8:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 19:11 [PATCH] atmel-mci.c: use resource size() H Hartley Sweeten
2009-12-14 19:11 ` H Hartley Sweeten
2009-12-14 19:35 ` Haavard Skinnemoen
2009-12-14 19:35 ` Haavard Skinnemoen
2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
2010-08-27 19:25 ` Matt Fleming
2010-08-30 7:47 ` Nicolas Ferre [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=4C7B61FB.6060301@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=akpm@linux-foundation.org \
--cc=cjb@laptop.org \
--cc=haavard.skinnemoen@atmel.com \
--cc=hartleys@visionengravers.com \
--cc=linux-mmc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.