1 From 8b0fb3cc6548fa4b531a26a605a0e213962bb889 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Fri, 3 Aug 2012 09:54:14 +0200
4 Subject: [PATCH 10/25] watchdog support
7 drivers/watchdog/lantiq_wdt.c | 23 +++++------------------
8 1 files changed, 5 insertions(+), 18 deletions(-)
10 diff --git a/drivers/watchdog/lantiq_wdt.c b/drivers/watchdog/lantiq_wdt.c
11 index d3a63be..70127b3 100644
12 --- a/drivers/watchdog/lantiq_wdt.c
13 +++ b/drivers/watchdog/lantiq_wdt.c
15 #include <linux/clk.h>
19 +#include <lantiq_soc.h>
21 /* Section 3.4 of the datasheet
22 * The password sequence protects the WDT control register from unintended
23 @@ -182,7 +182,7 @@ static struct miscdevice ltq_wdt_miscdev = {
24 .fops = <q_wdt_fops,
29 ltq_wdt_probe(struct platform_device *pdev)
31 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
32 @@ -206,7 +206,7 @@ ltq_wdt_probe(struct platform_device *pdev)
35 /* we do not need to enable the clock as it is always running */
36 - clk = clk_get(&pdev->dev, "io");
39 ltq_io_region_clk_rate = clk_get_rate(clk);
41 @@ -227,6 +227,7 @@ ltq_wdt_remove(struct platform_device *pdev)
44 static struct platform_driver ltq_wdt_driver = {
45 + .probe = ltq_wdt_probe,
46 .remove = __devexit_p(ltq_wdt_remove),
49 @@ -234,21 +235,7 @@ static struct platform_driver ltq_wdt_driver = {
56 - return platform_driver_probe(<q_wdt_driver, ltq_wdt_probe);
62 - return platform_driver_unregister(<q_wdt_driver);
65 -module_init(init_ltq_wdt);
66 -module_exit(exit_ltq_wdt);
68 +module_platform_driver(ltq_wdt_driver);
69 module_param(nowayout, int, 0);
70 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started");