aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/at91rm9200_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/at91rm9200_wdt.c')
-rw-r--r--drivers/watchdog/at91rm9200_wdt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c
index 89831ed24a4f..1c75260b987c 100644
--- a/drivers/watchdog/at91rm9200_wdt.c
+++ b/drivers/watchdog/at91rm9200_wdt.c
@@ -24,6 +24,8 @@
24#include <linux/types.h> 24#include <linux/types.h>
25#include <linux/watchdog.h> 25#include <linux/watchdog.h>
26#include <linux/uaccess.h> 26#include <linux/uaccess.h>
27#include <linux/of.h>
28#include <linux/of_device.h>
27#include <mach/at91_st.h> 29#include <mach/at91_st.h>
28 30
29#define WDT_DEFAULT_TIME 5 /* seconds */ 31#define WDT_DEFAULT_TIME 5 /* seconds */
@@ -252,6 +254,12 @@ static int at91wdt_resume(struct platform_device *pdev)
252#define at91wdt_resume NULL 254#define at91wdt_resume NULL
253#endif 255#endif
254 256
257static const struct of_device_id at91_wdt_dt_ids[] = {
258 { .compatible = "atmel,at91rm9200-wdt" },
259 { /* sentinel */ }
260};
261MODULE_DEVICE_TABLE(of, at91_wdt_dt_ids);
262
255static struct platform_driver at91wdt_driver = { 263static struct platform_driver at91wdt_driver = {
256 .probe = at91wdt_probe, 264 .probe = at91wdt_probe,
257 .remove = at91wdt_remove, 265 .remove = at91wdt_remove,
@@ -261,6 +269,7 @@ static struct platform_driver at91wdt_driver = {
261 .driver = { 269 .driver = {
262 .name = "at91_wdt", 270 .name = "at91_wdt",
263 .owner = THIS_MODULE, 271 .owner = THIS_MODULE,
272 .of_match_table = of_match_ptr(at91_wdt_dt_ids),
264 }, 273 },
265}; 274};
266 275