All of lore.kernel.org
 help / color / mirror / Atom feed
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,
	Manuel Lauss <manuel.lauss@gmail.com>
Subject: Re: [PATCH RESEND] au1xmmc.c: use resource_size()
Date: Fri, 27 Aug 2010 20:26:26 +0100	[thread overview]
Message-ID: <20100827192626.GD7258@console-pimps.org> (raw)
In-Reply-To: <20100827191134.GF20407@void.printf.net>

[Adding maintainer to CC]

On Fri, Aug 27, 2010 at 08:11:34PM +0100, Chris Ball wrote:
> From: H Hartley Sweeten <hsweeten@visionengravers.com>
> Date: Mon, 14 Dec 2009 14:28:06 -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/au1xmmc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c
> index c8da5d3..e14b866 100644
> --- a/drivers/mmc/host/au1xmmc.c
> +++ b/drivers/mmc/host/au1xmmc.c
> @@ -964,7 +964,7 @@ static int __devinit au1xmmc_probe(struct platform_device *pdev)
>  		goto out1;
>  	}
>  
> -	host->ioarea = request_mem_region(r->start, r->end - r->start + 1,
> +	host->ioarea = request_mem_region(r->start, resource_size(r),
>  					   pdev->name);
>  	if (!host->ioarea) {
>  		dev_err(&pdev->dev, "mmio already in use\n");
> -- 
> 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

  reply	other threads:[~2010-08-27 19:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 19:28 [PATCH] au1xmmc.c: use resource_size() H Hartley Sweeten
2009-12-14 19:28 ` H Hartley Sweeten
2010-08-27 19:11 ` [PATCH RESEND] " Chris Ball
2010-08-27 19:26   ` Matt Fleming [this message]
2010-08-27 22:38     ` Manuel Lauss
2010-08-27 22:43       ` Matt Fleming

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=20100827192626.GD7258@console-pimps.org \
    --to=matt@console-pimps.org \
    --cc=akpm@linux-foundation.org \
    --cc=cjb@laptop.org \
    --cc=hartleys@visionengravers.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=manuel.lauss@gmail.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.