From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932533Ab2CZOMl (ORCPT ); Mon, 26 Mar 2012 10:12:41 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:64017 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932438Ab2CZOMi (ORCPT ); Mon, 26 Mar 2012 10:12:38 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 108.39.66.94 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19fwm90VWau8lBGM0LCbaEyFDhRcK6kCHs= Date: Mon, 26 Mar 2012 10:12:33 -0400 From: Jason Cooper To: Axel Lin Cc: linux-kernel@vger.kernel.org, Sylver Bruneau , Wim Van Sebroeck , linux-watchdog@vger.kernel.org, Nicolas Pitre , Andrew Lunn , Arnd Bergmann Subject: Re: [PATCH RFT v2] watchdog: Convert orion_wdt driver to watchdog core Message-ID: <20120326141233.GR2484@titan.lakedaemon.net> References: <1332761395.20711.1.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1332761395.20711.1.camel@phoenix> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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.