mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Joe Perches <joe@perches.com>
Cc: Jiri Kosina <jkosina@suse.cz>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gpio-vr41xx: Convert use of struct resource to resource_size(ptr)
Date: Fri, 10 Jun 2011 23:48:47 -0600	[thread overview]
Message-ID: <20110611054847.GC16924@ponder.secretlab.ca> (raw)
In-Reply-To: <fb9fae86e3bc9f2d532cca7e513ac24229a67ceb.1307754917.git.joe@perches.com>

On Fri, Jun 10, 2011 at 06:16:15PM -0700, Joe Perches wrote:
> Remove miscellaneous use of direct calculation by using resource_size().
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Merged, thanks.
g.

> ---
>  drivers/gpio/gpio-vr41xx.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c
> index a365be0..98723cb 100644
> --- a/drivers/gpio/gpio-vr41xx.c
> +++ b/drivers/gpio/gpio-vr41xx.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;
>  
> -- 
> 1.7.6.rc1
> 

      reply	other threads:[~2011-06-11  5:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-11  1:16 Joe Perches
2011-06-11  5:48 ` 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=20110611054847.GC16924@ponder.secretlab.ca \
    --to=grant.likely@secretlab.ca \
    --cc=jkosina@suse.cz \
    --cc=joe@perches.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®