Re: [PATCH RESEND] atmel-mci.c: use resource size()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Adding Nicolas to Cc]

On Fri, Aug 27, 2010 at 08:09:55PM +0100, Chris Ball wrote:
> From: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
> Date: Mon, 14 Dec 2009 14:11:56 -0500
> 
> Use resource_size().
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
> [cjb: rebased patch against Linus]
> Signed-off-by: Chris Ball <cjb@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxx>   <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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux