Skip to contentSkip to conversation

watchdog: at91sam9_wdt: add device tree

PATCH New Andrew Lunn 2 participants 2 messages Oct 2, 2012 – Oct 3, 2012 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH v7 1/3 watchdog: at91sam9_wdt: add device tree

Quoted 28 lines

Date: Tue, 2 Oct 2012 18:01:00 +0200
From: Fabio Porcedda <[email protected]>
To: Wim Van Sebroeck <[email protected]>, linux-watchdog at vger.kernel.org,
linux-arm-kernel at lists.infradead.org, Nicolas Ferre <[email protected]>, Jean-Christophe PLAGNIOL-VILLARD <[email protected]>, Andrew Victor <[email protected]>
Cc: devicetree-discuss at lists.ozlabs.org
Subject: [PATCH v7 1/3] watchdog: at91sam9_wdt: add device tree
support
Message-ID:

        <[email protected]>

Tested on an at91sam9260 board (evk-pro3)

+++ b/drivers/watchdog/at91sam9_wdt.c

(quoted diff) +1 -0
@@ -32,6 +32,7 @@
 #include <linux/timer.h>
 #include <linux/bitops.h>
 #include <linux/uaccess.h>
+#include <linux/of.h>
 
 #include "at91sam9_wdt.h"
 

Review static int __exit at91wdt_remove(struct platform_device *pdev)

Quoted 1 line
(quoted diff) +0 -0
@@ -302,11 +303,21 @@ static int __exit at91wdt_remove(struct platform_device *pdev)
        return res;

}

Review

Quoted 5 lines
(quoted diff) +5 -0
+#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

#1 lore raw

PATCH v7 1/3 watchdog: at91sam9_wdt: add device tree

Quoted 36 lines · Andrew Lunn
Quoted 28 lines

Date: Tue, 2 Oct 2012 18:01:00 +0200
From: Fabio Porcedda <[email protected]>
To: Wim Van Sebroeck <[email protected]>, linux-watchdog at vger.kernel.org,
linux-arm-kernel at lists.infradead.org, Nicolas Ferre <[email protected]>, Jean-Christophe PLAGNIOL-VILLARD <[email protected]>, Andrew Victor <[email protected]>
Cc: devicetree-discuss at lists.ozlabs.org
Subject: [PATCH v7 1/3] watchdog: at91sam9_wdt: add device tree
support
Message-ID:

        <[email protected]>

Tested on an at91sam9260 board (evk-pro3)

+++ b/drivers/watchdog/at91sam9_wdt.c

(quoted diff) +1 -0
@@ -32,6 +32,7 @@
 #include <linux/timer.h>
 #include <linux/bitops.h>
 #include <linux/uaccess.h>
+#include <linux/of.h>
 
 #include "at91sam9_wdt.h"
 

Review static int __exit at91wdt_remove(struct platform_device *pdev)

Quoted 1 line
(quoted diff) +0 -0
@@ -302,11 +303,21 @@ static int __exit at91wdt_remove(struct platform_device *pdev)
        return res;

}

Review

Quoted 5 lines
(quoted diff) +5 -0
+#if defined(CONFIG_OF)
+static const struct of_device_id at91_wdt_dt_ids[] = {
+       { .compatible = "atmel,at91sam9260-wdt" },
+       { /* sentinel */ }
+};

Hi Fabio

Quoted 1 line

You are missing __devinitdata.

Thank you, Andrew.
I'll add __initconst, because it's const and use platform_driver_probe.

Best regards

Signature · 1 line
Fabio Porcedda