linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atmel-mci.c: use resource size()
@ 2009-12-14 19:11 H Hartley Sweeten
  2009-12-14 19:35 ` Haavard Skinnemoen
  2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
  0 siblings, 2 replies; 5+ messages in thread
From: H Hartley Sweeten @ 2009-12-14 19:11 UTC (permalink / raw)
  To: kernel list, linux-mmc; +Cc: haavard.skinnemoen

Use resource_size().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>

---

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index fc25586..150242f 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -1628,7 +1628,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;
  

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] atmel-mci.c: use resource size()
  2009-12-14 19:11 [PATCH] atmel-mci.c: use resource size() H Hartley Sweeten
@ 2009-12-14 19:35 ` Haavard Skinnemoen
  2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
  1 sibling, 0 replies; 5+ messages in thread
From: Haavard Skinnemoen @ 2009-12-14 19:35 UTC (permalink / raw)
  To: H Hartley Sweeten; +Cc: kernel list, linux-mmc, Ferre, Nicolas

"H Hartley Sweeten" <hartleys@visionengravers.com> wrote:
> Use resource_size().
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>

Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH RESEND] atmel-mci.c: use resource size()
  2009-12-14 19:11 [PATCH] atmel-mci.c: use resource size() H Hartley Sweeten
  2009-12-14 19:35 ` Haavard Skinnemoen
@ 2010-08-27 19:09 ` Chris Ball
  2010-08-27 19:25   ` Matt Fleming
  2010-08-30  7:47   ` Nicolas Ferre
  1 sibling, 2 replies; 5+ messages in thread
From: Chris Ball @ 2010-08-27 19:09 UTC (permalink / raw)
  To: H Hartley Sweeten; +Cc: akpm, linux-mmc, haavard.skinnemoen

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH RESEND] atmel-mci.c: use resource size()
  2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
@ 2010-08-27 19:25   ` Matt Fleming
  2010-08-30  7:47   ` Nicolas Ferre
  1 sibling, 0 replies; 5+ messages in thread
From: Matt Fleming @ 2010-08-27 19:25 UTC (permalink / raw)
  To: Chris Ball
  Cc: H Hartley Sweeten, akpm, linux-mmc, haavard.skinnemoen,
	Nicolas Ferre

[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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RESEND] atmel-mci.c: use resource size()
  2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
  2010-08-27 19:25   ` Matt Fleming
@ 2010-08-30  7:47   ` Nicolas Ferre
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Ferre @ 2010-08-30  7:47 UTC (permalink / raw)
  To: Chris Ball; +Cc: H Hartley Sweeten, akpm, linux-mmc, haavard.skinnemoen

Le 27/08/2010 21:09, Chris Ball :
> 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>

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>

> ---
>  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;
>  


-- 
Nicolas Ferre


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-30  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 19:11 [PATCH] atmel-mci.c: use resource size() H Hartley Sweeten
2009-12-14 19:35 ` Haavard Skinnemoen
2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
2010-08-27 19:25   ` Matt Fleming
2010-08-30  7:47   ` Nicolas Ferre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).