[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110627230154.GI20865@ponder.secretlab.ca>
Date: Mon, 27 Jun 2011 17:01:54 -0600
From: Grant Likely <grant.likely@...retlab.ca>
To: H Hartley Sweeten <hartleys@...ionengravers.com>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpio: vr41xx_giu: use resource_size()
On Mon, Jun 06, 2011 at 01:52:19PM -0700, H Hartley Sweeten wrote:
> Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
> Cc: Grant Likely <grant.likely@...retlab.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;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists