From: Felipe Balbi <felipe.balbi@nokia.com>
To: ext Kevin Hilman <khilman@deeprootsystems.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"wim@iguana.be" <wim@iguana.be>
Subject: Re: [PATCH] watchdog: davinci: convert to ioremap() + io[read|write]
Date: Thu, 5 Feb 2009 19:38:10 +0200 [thread overview]
Message-ID: <20090205173810.GE10567@scadufax.research.nokia.com> (raw)
In-Reply-To: <1233854782-3642-1-git-send-email-khilman@deeprootsystems.com>
On Thu, Feb 05, 2009 at 06:26:22PM +0100, Kevin Hilman wrote:
> + wdt_base = ioremap(res->start, res->end);
second argument should be size right ??
ioremap(res->start, res->end - res->start + 1);
in fact you have a size variable in this driver used for
request_mem_region() just be sure the value is still valid and use it
;-)
> + if (!wdt_base) {
> + printk(KERN_ERR MODULE_NAME "failed to map memory region\n");
you have a dev pointer in platform_device would be cool
to use dev_err() here
--
balbi
next prev parent reply other threads:[~2009-02-05 17:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 17:26 Kevin Hilman
2009-02-05 17:38 ` Felipe Balbi [this message]
2009-02-05 18:13 ` Kevin Hilman
2009-02-05 18:27 ` Kevin Hilman
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=20090205173810.GE10567@scadufax.research.nokia.com \
--to=felipe.balbi@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wim@iguana.be \
/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 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®