aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/ib700wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/ib700wdt.c')
-rw-r--r--drivers/watchdog/ib700wdt.c12
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
132static void 132static void ibwdt_ping(void)
133ibwdt_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
143static void 142static void ibwdt_disable(void)
144ibwdt_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
151static int 149static int ibwdt_set_heartbeat(int t)
152ibwdt_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
266static int 263static int ibwdt_close(struct inode *inode, struct file *file)
267ibwdt_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();