From: Jason Cooper <jason@lakedaemon.net>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel@vger.kernel.org,
Sylver Bruneau <sylver.bruneau@googlemail.com>,
Wim Van Sebroeck <wim@iguana.be>,
linux-watchdog@vger.kernel.org,
Nicolas Pitre <nicolas.pitre@linaro.org>,
Andrew Lunn <andrew@lunn.ch>, Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH RFT v2] watchdog: Convert orion_wdt driver to watchdog core
Date: Mon, 26 Mar 2012 10:12:33 -0400 [thread overview]
Message-ID: <20120326141233.GR2484@titan.lakedaemon.net> (raw)
In-Reply-To: <1332761395.20711.1.camel@phoenix>
On Mon, Mar 26, 2012 at 07:29:55PM +0800, Axel Lin wrote:
> Convert the orion_wdt driver to the watchdog framework API.
>
Hi Axel, thanks for the patch.
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> v2: v1 does not apply to current tree. so I re-generate this patch.
> drivers/watchdog/Kconfig | 1 +
> drivers/watchdog/orion_wdt.c | 198 ++++++++++--------------------------------
> 2 files changed, 48 insertions(+), 151 deletions(-)
>
...
> diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c
> index 788aa15..8ba7d76 100644
> --- a/drivers/watchdog/orion_wdt.c
> +++ b/drivers/watchdog/orion_wdt.c
...
> @@ -31,7 +30,7 @@
> * Watchdog timer block registers.
> */
> #define TIMER_CTRL 0x0000
> -#define WDT_EN 0x0010
> +#define WDT_EN 0x0010
nit, whitespace change.
...
> static int __devinit orion_wdt_probe(struct platform_device *pdev)
> @@ -241,26 +146,28 @@ static int __devinit orion_wdt_probe(struct platform_device *pdev)
> struct resource *res;
> int ret;
>
> - if (pdata) {
> - wdt_tclk = pdata->tclk;
> - } else {
> + if (!pdata) {
> pr_err("misses platform data\n");
> return -ENODEV;
> }
Platform data is changing soon with devicetree support (and converting
to common clock). Please don't change this if you don't need to.
Also, I'll include Andrew Lunn in the CC. He's doing the conversion of
orion over to common clock, which affects this driver.
hth,
Jason.
next prev parent reply other threads:[~2012-03-26 14:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-26 11:29 Axel Lin
2012-03-26 14:12 ` Jason Cooper [this message]
2012-03-26 17:36 ` Andrew Lunn
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=20120326141233.GR2484@titan.lakedaemon.net \
--to=jason@lakedaemon.net \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=axel.lin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=nicolas.pitre@linaro.org \
--cc=sylver.bruneau@googlemail.com \
--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®