From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH v7 1/3] watchdog: at91sam9_wdt: add device tree Date: Tue, 2 Oct 2012 22:07:53 +0200 Message-ID: <20121002200753.GA12565@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: fabio.porcedda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Wim Van Sebroeck , Andrew Victor , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org > Date: Tue, 2 Oct 2012 18:01:00 +0200 > From: Fabio Porcedda > To: Wim Van Sebroeck , linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Nicolas Ferre > , Jean-Christophe PLAGNIOL-VILLARD > , Andrew Victor > Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > Subject: [PATCH v7 1/3] watchdog: at91sam9_wdt: add device tree > support > Message-ID: > <1349193662-23482-2-git-send-email-fabio.porcedda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Tested on an at91sam9260 board (evk-pro3) > > Signed-off-by: Fabio Porcedda > +++ b/drivers/watchdog/at91sam9_wdt.c > @@ -32,6 +32,7 @@ > #include > #include > #include > +#include > > #include "at91sam9_wdt.h" > > > @@ -302,11 +303,21 @@ static int __exit at91wdt_remove(struct platform_device *pdev) > return res; > } > > +#if defined(CONFIG_OF) > +static const struct of_device_id at91_wdt_dt_ids[] = { > + { .compatible = "atmel,at91sam9260-wdt" }, > + { /* sentinel */ } > +}; Hi Fabio You are missing __devinitdata. Andrew