[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110607191942.GB2035@ponder.secretlab.ca>
Date: Tue, 7 Jun 2011 13:19:42 -0600
From: Grant Likely <grant.likely@...retlab.ca>
To: Felipe Balbi <balbi@...com>
Cc: devicetree-discuss@...ts.ozlabs.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] of: address: use resource_size helper
On Tue, Jun 07, 2011 at 09:55:24PM +0300, Felipe Balbi wrote:
> that should be the approved way of calculating
> the size of resources. No functional changes.
>
> Signed-off-by: Felipe Balbi <balbi@...com>
Applied, thanks.
g.
> ---
> drivers/of/address.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/of/address.c b/drivers/of/address.c
> index deefc0c..6e7b2cf 100644
> --- a/drivers/of/address.c
> +++ b/drivers/of/address.c
> @@ -624,6 +624,6 @@ void __iomem *of_iomap(struct device_node *np, int index)
> if (of_address_to_resource(np, index, &res))
> return NULL;
>
> - return ioremap(res.start, 1 + res.end - res.start);
> + return ioremap(res.start, resource_size(&res));
> }
> EXPORT_SYMBOL(of_iomap);
> --
> 1.7.6.rc0
>
--
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