diff options
Diffstat (limited to 'drivers/watchdog/ib700wdt.c')
-rw-r--r-- | drivers/watchdog/ib700wdt.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/watchdog/ib700wdt.c b/drivers/watchdog/ib700wdt.c index 6aa914e5caf5..05a28106e8eb 100644 --- a/drivers/watchdog/ib700wdt.c +++ b/drivers/watchdog/ib700wdt.c | |||
@@ -129,8 +129,7 @@ MODULE_PARM_DESC(nowayout, | |||
129 | * Watchdog Operations | 129 | * Watchdog Operations |
130 | */ | 130 | */ |
131 | 131 | ||
132 | static void | 132 | static void ibwdt_ping(void) |
133 | ibwdt_ping(void) | ||
134 | { | 133 | { |
135 | spin_lock(&ibwdt_lock); | 134 | spin_lock(&ibwdt_lock); |
136 | 135 | ||
@@ -140,16 +139,14 @@ ibwdt_ping(void) | |||
140 | spin_unlock(&ibwdt_lock); | 139 | spin_unlock(&ibwdt_lock); |
141 | } | 140 | } |
142 | 141 | ||
143 | static void | 142 | static void ibwdt_disable(void) |
144 | ibwdt_disable(void) | ||
145 | { | 143 | { |
146 | spin_lock(&ibwdt_lock); | 144 | spin_lock(&ibwdt_lock); |
147 | outb_p(0, WDT_STOP); | 145 | outb_p(0, WDT_STOP); |
148 | spin_unlock(&ibwdt_lock); | 146 | spin_unlock(&ibwdt_lock); |
149 | } | 147 | } |
150 | 148 | ||
151 | static int | 149 | static int ibwdt_set_heartbeat(int t) |
152 | ibwdt_set_heartbeat(int t) | ||
153 | { | 150 | { |
154 | int i; | 151 | int i; |
155 | 152 | ||
@@ -263,8 +260,7 @@ static int ibwdt_open(struct inode *inode, struct file *file) | |||
263 | return nonseekable_open(inode, file); | 260 | return nonseekable_open(inode, file); |
264 | } | 261 | } |
265 | 262 | ||
266 | static int | 263 | static int ibwdt_close(struct inode *inode, struct file *file) |
267 | ibwdt_close(struct inode *inode, struct file *file) | ||
268 | { | 264 | { |
269 | if (expect_close == 42) { | 265 | if (expect_close == 42) { |
270 | ibwdt_disable(); | 266 | ibwdt_disable(); |