diff options
Diffstat (limited to 'drivers/watchdog/wafer5823wdt.c')
-rw-r--r-- | drivers/watchdog/wafer5823wdt.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/watchdog/wafer5823wdt.c b/drivers/watchdog/wafer5823wdt.c index 44e81f7d4322..68377ae171ff 100644 --- a/drivers/watchdog/wafer5823wdt.c +++ b/drivers/watchdog/wafer5823wdt.c | |||
@@ -1,11 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | * ICP Wafer 5823 Single Board Computer WDT driver | 2 | * ICP Wafer 5823 Single Board Computer WDT driver |
3 | * http://www.icpamerica.com/wafer_5823.php | 3 | * http://www.icpamerica.com/wafer_5823.php |
4 | * May also work on other similar models | 4 | * May also work on other similar models |
5 | * | 5 | * |
6 | * (c) Copyright 2002 Justin Cormack <justin@street-vision.com> | 6 | * (c) Copyright 2002 Justin Cormack <justin@street-vision.com> |
7 | * | 7 | * |
8 | * Release 0.02 | 8 | * Release 0.02 |
9 | * | 9 | * |
10 | * Based on advantechwdt.c which is based on wdt.c. | 10 | * Based on advantechwdt.c which is based on wdt.c. |
11 | * Original copyright messages: | 11 | * Original copyright messages: |
@@ -50,10 +50,10 @@ static DEFINE_SPINLOCK(wafwdt_lock); | |||
50 | /* | 50 | /* |
51 | * You must set these - there is no sane way to probe for this board. | 51 | * You must set these - there is no sane way to probe for this board. |
52 | * | 52 | * |
53 | * To enable, write the timeout value in seconds (1 to 255) to I/O | 53 | * To enable, write the timeout value in seconds (1 to 255) to I/O |
54 | * port WDT_START, then read the port to start the watchdog. To pat | 54 | * port WDT_START, then read the port to start the watchdog. To pat |
55 | * the dog, read port WDT_STOP to stop the timer, then read WDT_START | 55 | * the dog, read port WDT_STOP to stop the timer, then read WDT_START |
56 | * to restart it again. | 56 | * to restart it again. |
57 | */ | 57 | */ |
58 | 58 | ||
59 | static int wdt_stop = 0x843; | 59 | static int wdt_stop = 0x843; |
@@ -87,8 +87,7 @@ static void wafwdt_start(void) | |||
87 | inb_p(wdt_start); | 87 | inb_p(wdt_start); |
88 | } | 88 | } |
89 | 89 | ||
90 | static void | 90 | static void wafwdt_stop(void) |
91 | wafwdt_stop(void) | ||
92 | { | 91 | { |
93 | /* stop watchdog */ | 92 | /* stop watchdog */ |
94 | inb_p(wdt_stop); | 93 | inb_p(wdt_stop); |
@@ -199,8 +198,7 @@ static int wafwdt_open(struct inode *inode, struct file *file) | |||
199 | return nonseekable_open(inode, file); | 198 | return nonseekable_open(inode, file); |
200 | } | 199 | } |
201 | 200 | ||
202 | static int | 201 | static int wafwdt_close(struct inode *inode, struct file *file) |
203 | wafwdt_close(struct inode *inode, struct file *file) | ||
204 | { | 202 | { |
205 | if (expect_close == 42) | 203 | if (expect_close == 42) |
206 | wafwdt_stop(); | 204 | wafwdt_stop(); |