From: Matt Fleming <matt@console-pimps.org>
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,
Nicolas Ferre <nicolas.ferre@atmel.com>
Subject: Re: [PATCH RESEND] atmel-mci.c: use resource size()
Date: Fri, 27 Aug 2010 20:25:19 +0100 [thread overview]
Message-ID: <20100827192519.GC7258@console-pimps.org> (raw)
In-Reply-To: <20100827190955.GE20407@void.printf.net>
[Adding Nicolas to Cc]
On Fri, Aug 27, 2010 at 08:09:55PM +0100, Chris Ball wrote:
> 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>
> ---
> 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;
>
> --
> 1.7.0.1
>
> --
> Chris Ball <cjb@laptop.org> <http://printf.net/>
> One Laptop Per Child
> --
> 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
next prev parent reply other threads:[~2010-08-27 19:25 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 [this message]
2010-08-30 7:47 ` Nicolas Ferre
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=20100827192519.GC7258@console-pimps.org \
--to=matt@console-pimps.org \
--cc=akpm@linux-foundation.org \
--cc=cjb@laptop.org \
--cc=haavard.skinnemoen@atmel.com \
--cc=hartleys@visionengravers.com \
--cc=linux-mmc@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
/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.