From: Samuel Ortiz <sameo@linux.intel.com>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: kernel list <linux-kernel@vger.kernel.org>, ian@mnementh.co.uk
Subject: Re: [PATCH] t7l66xb.c: use resource_size()
Date: Tue, 5 Jan 2010 20:03:01 +0100 [thread overview]
Message-ID: <20100105190300.GH4274@sortiz.org> (raw)
In-Reply-To: <BD79186B4FD85F4B8E60E381CAEE190901FB110A@mi8nycmail19.Mi8.com>
Hi Hartley,
On Fri, Dec 11, 2009 at 07:07:32PM -0500, H Hartley Sweeten wrote:
> Use resource_size() for ioremap.
Patch applied, thanks.
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Ian Molton <ian@mnementh.co.uk>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
>
> ---
>
> diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
> index 0a255c1..20bbd1d 100644
> --- a/drivers/mfd/t7l66xb.c
> +++ b/drivers/mfd/t7l66xb.c
> @@ -341,7 +341,7 @@ static int t7l66xb_probe(struct platform_device *dev)
> if (ret)
> goto err_request_scr;
>
> - t7l66xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1);
> + t7l66xb->scr = ioremap(rscr->start, resource_size(rscr));
> if (!t7l66xb->scr) {
> ret = -ENOMEM;
> goto err_ioremap;
--
Intel Open Source Technology Centre
http://oss.intel.com/
prev parent reply other threads:[~2010-01-05 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-12 0:07 [PATCH] t7l66xb.c: use resource_size() H Hartley Sweeten
2010-01-05 19:03 ` Samuel Ortiz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100105190300.GH4274@sortiz.org \
--to=sameo@linux.intel.com \
--cc=hartleys@visionengravers.com \
--cc=ian@mnementh.co.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.