diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2009-03-18 04:35:09 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2009-03-25 05:07:04 -0400 |
commit | 143a2e54bf53216674eada16e8953f48b159e08a (patch) | |
tree | 009497fad6a7d28aae80f490007ce78736afb82c /drivers/watchdog/geodewdt.c | |
parent | d5c26a597782d4109869abbcc36983969f964864 (diff) |
[WATCHDOG] More coding-style and trivial clean-up
Some more cleaning-up of the watchdog drivers.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/geodewdt.c')
-rw-r--r-- | drivers/watchdog/geodewdt.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/watchdog/geodewdt.c b/drivers/watchdog/geodewdt.c index 6799a6de66fe..9acf0015a1e7 100644 --- a/drivers/watchdog/geodewdt.c +++ b/drivers/watchdog/geodewdt.c | |||
@@ -34,11 +34,15 @@ | |||
34 | 34 | ||
35 | static int timeout = WATCHDOG_TIMEOUT; | 35 | static int timeout = WATCHDOG_TIMEOUT; |
36 | module_param(timeout, int, 0); | 36 | module_param(timeout, int, 0); |
37 | MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds. 1<= timeout <=131, default=" __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | 37 | MODULE_PARM_DESC(timeout, |
38 | "Watchdog timeout in seconds. 1<= timeout <=131, default=" | ||
39 | __MODULE_STRING(WATCHDOG_TIMEOUT) "."); | ||
38 | 40 | ||
39 | static int nowayout = WATCHDOG_NOWAYOUT; | 41 | static int nowayout = WATCHDOG_NOWAYOUT; |
40 | module_param(nowayout, int, 0); | 42 | module_param(nowayout, int, 0); |
41 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | 43 | MODULE_PARM_DESC(nowayout, |
44 | "Watchdog cannot be stopped once started (default=" | ||
45 | __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); | ||
42 | 46 | ||
43 | static struct platform_device *geodewdt_platform_device; | 47 | static struct platform_device *geodewdt_platform_device; |
44 | static unsigned long wdt_flags; | 48 | static unsigned long wdt_flags; |
@@ -269,7 +273,8 @@ static int __init geodewdt_init(void) | |||
269 | if (ret) | 273 | if (ret) |
270 | return ret; | 274 | return ret; |
271 | 275 | ||
272 | geodewdt_platform_device = platform_device_register_simple(DRV_NAME, -1, NULL, 0); | 276 | geodewdt_platform_device = platform_device_register_simple(DRV_NAME, |
277 | -1, NULL, 0); | ||
273 | if (IS_ERR(geodewdt_platform_device)) { | 278 | if (IS_ERR(geodewdt_platform_device)) { |
274 | ret = PTR_ERR(geodewdt_platform_device); | 279 | ret = PTR_ERR(geodewdt_platform_device); |
275 | goto err; | 280 | goto err; |