diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-28 16:03:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-28 16:03:26 -0400 |
commit | 750f77064a290beb162352077b52c61b04bcae0e (patch) | |
tree | 736a8dd043dc4cda298762a80e7c1fbf1bb87742 /drivers/watchdog/at91rm9200_wdt.c | |
parent | 89e5d6f0d979f6e7dc2bbb1ebd9e239217e2e952 (diff) | |
parent | b92c803ec61de59e6e4ab9b2748d8e633cec3f08 (diff) |
Merge git://www.linux-watchdog.org/linux-watchdog
Pull watchdog updates from Wim Van Sebroeck:
- Removal of the Documentation/watchdog/00-INDEX file
- Fix boot status reporting for imx2_wdt
- clean-up sp805_wdt, pnx4008_wdt and mpcore_wdt
- convert printk in watchdog drivers to pr_ functions
- change nowayout module parameter to bool for every watchdog device
- conversion of jz4740_wdt, pnx4008_wdt, max63xx_wdt, softdog,
ep93xx_wdt, coh901327 and txx9wdt to new watchdog API
- Add support for the WDIOC_GETTIMELEFT ioctl call to the new watchdog
API
- Change the new watchdog API so that the driver updates the timeout
value
- two fixes for the xen_wdt driver
Fix up conflicts in ep93xx driver due to the same patches being merged
through separate branches.
* git://www.linux-watchdog.org/linux-watchdog: (33 commits)
watchdog: txx9wdt: fix timeout
watchdog: Convert txx9wdt driver to watchdog framework
watchdog: coh901327_wdt.c: fix timeout
watchdog: coh901327: convert to use watchdog core
watchdog: Add support for WDIOC_GETTIMELEFT IOCTL in watchdog core
watchdog: ep93xx_wdt: timeout is an unsigned int value.
watchdog: ep93xx_wdt: Fix timeout after conversion to watchdog core
watchdog: Convert ep93xx driver to watchdog core
watchdog: sp805: Use devm routines
watchdog: sp805: replace readl/writel with lighter _relaxed variants
watchdog: sp805: Fix documentation style comment
watchdog: mpcore_wdt: Allow platform_get_irq() to fail
watchdog: mpcore_wdt: Use devm routines
watchdog: mpcore_wdt: Rename dev to pdev for pointing to struct platform_device
watchdog: xen: don't clear is_active when xen_wdt_stop() failed
watchdog: xen: don't unconditionally enable the watchdog during resume
watchdog: fix compiler error for missing parenthesis
watchdog: ep93xx_wdt.c: fix platform probe
watchdog: ep93xx: Convert the watchdog driver into a platform device.
watchdog: fix set_timeout operations
...
Diffstat (limited to 'drivers/watchdog/at91rm9200_wdt.c')
-rw-r--r-- | drivers/watchdog/at91rm9200_wdt.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index 7ceefd29ae14..7ef99a169e3b 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c | |||
@@ -9,6 +9,8 @@ | |||
9 | * 2 of the License, or (at your option) any later version. | 9 | * 2 of the License, or (at your option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
13 | |||
12 | #include <linux/bitops.h> | 14 | #include <linux/bitops.h> |
13 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
14 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
@@ -28,14 +30,14 @@ | |||
28 | #define WDT_MAX_TIME 256 /* seconds */ | 30 | #define WDT_MAX_TIME 256 /* seconds */ |
29 | 31 | ||
30 | static int wdt_time = WDT_DEFAULT_TIME; | 32 | static int wdt_time = WDT_DEFAULT_TIME; |
31 | static int nowayout = WATCHDOG_NOWAYOUT; | 33 | static bool nowayout = WATCHDOG_NOWAYOUT; |
32 | 34 | ||
33 | module_param(wdt_time, int, 0); | 35 | module_param(wdt_time, int, 0); |
34 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" | 36 | MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" |
35 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); | 37 | __MODULE_STRING(WDT_DEFAULT_TIME) ")"); |
36 | 38 | ||
37 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | 39 | #ifdef CONFIG_WATCHDOG_NOWAYOUT |
38 | module_param(nowayout, int, 0); | 40 | module_param(nowayout, bool, 0); |
39 | MODULE_PARM_DESC(nowayout, | 41 | MODULE_PARM_DESC(nowayout, |
40 | "Watchdog cannot be stopped once started (default=" | 42 | "Watchdog cannot be stopped once started (default=" |
41 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 43 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
@@ -209,8 +211,8 @@ static int __devinit at91wdt_probe(struct platform_device *pdev) | |||
209 | if (res) | 211 | if (res) |
210 | return res; | 212 | return res; |
211 | 213 | ||
212 | printk(KERN_INFO "AT91 Watchdog Timer enabled (%d seconds%s)\n", | 214 | pr_info("AT91 Watchdog Timer enabled (%d seconds%s)\n", |
213 | wdt_time, nowayout ? ", nowayout" : ""); | 215 | wdt_time, nowayout ? ", nowayout" : ""); |
214 | return 0; | 216 | return 0; |
215 | } | 217 | } |
216 | 218 | ||
@@ -268,8 +270,8 @@ static int __init at91_wdt_init(void) | |||
268 | if not reset to the default */ | 270 | if not reset to the default */ |
269 | if (at91_wdt_settimeout(wdt_time)) { | 271 | if (at91_wdt_settimeout(wdt_time)) { |
270 | at91_wdt_settimeout(WDT_DEFAULT_TIME); | 272 | at91_wdt_settimeout(WDT_DEFAULT_TIME); |
271 | pr_info("at91_wdt: wdt_time value must be 1 <= wdt_time <= 256" | 273 | pr_info("wdt_time value must be 1 <= wdt_time <= 256, using %d\n", |
272 | ", using %d\n", wdt_time); | 274 | wdt_time); |
273 | } | 275 | } |
274 | 276 | ||
275 | return platform_driver_register(&at91wdt_driver); | 277 | return platform_driver_register(&at91wdt_driver); |