mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gpio: vr41xx_giu: use resource_size()
@ 2011-06-06 20:52 H Hartley Sweeten
  2011-06-27 23:01 ` Grant Likely
  0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2011-06-06 20:52 UTC (permalink / raw)
  To: Linux Kernel; +Cc: grant.likely

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Grant Likely <grant.likely@secretlab.ca>

---

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;
 

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

* Re: [PATCH] gpio: vr41xx_giu: use resource_size()
  2011-06-06 20:52 [PATCH] gpio: vr41xx_giu: use resource_size() H Hartley Sweeten
@ 2011-06-27 23:01 ` Grant Likely
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2011-06-27 23:01 UTC (permalink / raw)
  To: H Hartley Sweeten; +Cc: Linux Kernel

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

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

end of thread, other threads:[~2011-06-27 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 20:52 [PATCH] gpio: vr41xx_giu: use resource_size() H Hartley Sweeten
2011-06-27 23:01 ` Grant Likely

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®