[PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling
Attached patch removes #ifdef CONFIG_WATCHDOG_NOWAYOUT mess duplicated in almost every watchdog driver and replaces it with common define in linux/watchdog.h. Signed-off-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
7657e20e46
commit
4bfdf37830
@@ -23,11 +23,7 @@
|
||||
static char vmwdt_cmd[MAX_CMDLEN] = "IPL";
|
||||
static int vmwdt_conceal;
|
||||
|
||||
#ifdef CONFIG_WATCHDOG_NOWAYOUT
|
||||
static int vmwdt_nowayout = 1;
|
||||
#else
|
||||
static int vmwdt_nowayout = 0;
|
||||
#endif
|
||||
static int vmwdt_nowayout = WATCHDOG_NOWAYOUT;
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Arnd Bergmann <arndb@de.ibm.com>");
|
||||
|
Reference in New Issue
Block a user