From: Grant Likely <grant.likely@secretlab.ca>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] gpio: vr41xx_giu: use resource_size()
Date: Mon, 27 Jun 2011 17:01:54 -0600 [thread overview]
Message-ID: <20110627230154.GI20865@ponder.secretlab.ca> (raw)
In-Reply-To: <201106061352.19881.hartleys@visionengravers.com>
On Mon, Jun 06, 2011 at 01:52:19PM -0700, H Hartley Sweeten wrote:
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Grant Likely <grant.likely@secretlab.ca>
Thanks. I've already merged a patch that makes this change.
g.
>
> ---
>
> diff --git a/drivers/gpio/vr41xx_giu.c b/drivers/gpio/vr41xx_giu.c
> index a365be0..98723cb 100644
> --- a/drivers/gpio/vr41xx_giu.c
> +++ b/drivers/gpio/vr41xx_giu.c
> @@ -518,7 +518,7 @@ static int __devinit giu_probe(struct platform_device *pdev)
> if (!res)
> return -EBUSY;
>
> - giu_base = ioremap(res->start, res->end - res->start + 1);
> + giu_base = ioremap(res->start, resource_size(res));
> if (!giu_base)
> return -ENOMEM;
>
prev parent reply other threads:[~2011-06-27 23:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 20:52 H Hartley Sweeten
2011-06-27 23:01 ` Grant Likely [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=20110627230154.GI20865@ponder.secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=hartleys@visionengravers.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®