From: Andrew Morton <akpm@linux-foundation.org>
To: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Cc: linux-kernel@vger.kernel.org,
Haavard Skinnemoen <hskinnemoen@atmel.com>,
Wim Van Sebroeck <wim@iguana.be>
Subject: Re: [PATCH 1/1] Watchdog driver for AT32AP700X devices
Date: Thu, 7 Jun 2007 16:09:10 -0700 [thread overview]
Message-ID: <20070607160910.34d64842.akpm@linux-foundation.org> (raw)
In-Reply-To: <1181138647434-git-send-email-hcegtvedt@atmel.com>
On Wed, 6 Jun 2007 16:04:07 +0200
Hans-Christian Egtvedt <hcegtvedt@atmel.com> wrote:
> This patch adds support for the built in watchdog in AT32AP700X devices.
>
> Tested on AT32AP7000 and ATSTK1000.
>
> Hardware documentation can be found in the AT32AP7000 datasheet.
>
> ...
>
> +static int __init at32_wdt_probe(struct platform_device *pdev)
> +{
> + struct resource *regs;
> + int ret;
> +
> + if (wdt) {
> + dev_dbg(&pdev->dev, "only 1 wdt instance supported.\n");
> + return -EBUSY;
> + }
> +
> + regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> + if (!regs) {
> + dev_dbg(&pdev->dev, "missing mmio resource\n");
> + return -ENXIO;
> + }
> +
> + wdt = kzalloc(sizeof(struct wdt_at32ap700x), GFP_KERNEL);
> + if (!wdt) {
> + dev_dbg(&pdev->dev, "no memory for wdt structure\n");
> + return -ENOMEM;
> + }
> +
> + wdt->regs = ioremap(regs->start, regs->end - regs->start + 1);
I see an ioremap(), but there are no iounmap()s anywhere.
next prev parent reply other threads:[~2007-06-07 23:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 14:04 Hans-Christian Egtvedt
2007-06-07 23:09 ` Andrew Morton [this message]
2007-06-08 7:23 ` Hans-Christian Egtvedt
2007-06-08 11:20 ` Hans-Christian Egtvedt
2007-06-10 20:31 ` Wim Van Sebroeck
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=20070607160910.34d64842.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=hcegtvedt@atmel.com \
--cc=hskinnemoen@atmel.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®