提交 de710d68 编写于 作者: S Samuel Tardieu 提交者: Wim Van Sebroeck

[WATCHDOG] w83697hf/hg WDT driver - patch 6

This is patch 6 in the series of patches that converts
Marcus Junker's w83697hf watchdog driver to Samuel Tardieau's
w83697hf/hg watchdog driver.

This patch contains following changes:
 - The driver works for both the w83697hf
   and the w83697hg chipset's.
Signed-off-by: NSamuel Tardieu <sam@rfc1149.net>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 44d7d328
/* /*
* w83697hf WDT driver * w83697hf/hg WDT driver
* *
* (c) Copyright 2006 Marcus Junker <junker@anduras.de> * (c) Copyright 2006 Marcus Junker <junker@anduras.de>
* *
* Based on w83627hf_wdt.c advantechwdt.c which is based on wdt.c. * Based on w83627hf_wdt.c which is based on advantechwdt.c
* which is based on wdt.c.
* Original copyright messages: * Original copyright messages:
* *
* (c) Copyright 2003 Pdraig Brady <P@draigBrady.com> * (c) Copyright 2003 Pdraig Brady <P@draigBrady.com>
...@@ -39,7 +40,7 @@ ...@@ -39,7 +40,7 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/system.h> #include <asm/system.h>
#define WATCHDOG_NAME "w83697hf WDT" #define WATCHDOG_NAME "w83697hf/hg WDT"
#define PFX WATCHDOG_NAME ": " #define PFX WATCHDOG_NAME ": "
#define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */ #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
...@@ -313,7 +314,7 @@ wdt_init(void) ...@@ -313,7 +314,7 @@ wdt_init(void)
spin_lock_init(&io_lock); spin_lock_init(&io_lock);
printk (KERN_INFO "WDT driver for the Winbond(TM) W83697HF Super I/O chip initialising.\n"); printk (KERN_INFO PFX "WDT driver for W83697HF/HG initializing\n");
if (wdt_set_heartbeat(timeout)) { if (wdt_set_heartbeat(timeout)) {
wdt_set_heartbeat(WATCHDOG_TIMEOUT); wdt_set_heartbeat(WATCHDOG_TIMEOUT);
...@@ -369,5 +370,5 @@ module_exit(wdt_exit); ...@@ -369,5 +370,5 @@ module_exit(wdt_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Marcus Junker <junker@anduras.de>"); MODULE_AUTHOR("Marcus Junker <junker@anduras.de>");
MODULE_DESCRIPTION("w83697hf WDT driver"); MODULE_DESCRIPTION("w83697hf/hg WDT driver");
MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册