Commit e1576973 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[WATCHDOG] Final 2.4 changes for w83877f_wdt.c

parent 9b6d9f8d
......@@ -214,6 +214,8 @@ static int fop_open(struct inode * inode, struct file * file)
case WATCHDOG_MINOR:
/* Just in case we're already talking to someone... */
if(test_and_set_bit(0, &wdt_is_open)) {
/* Davej: Is this unlock bogus? */
spin_unlock(&wdt_spinlock);
return -EBUSY;
}
/* Good, fire up the show */
......@@ -236,7 +238,7 @@ static int fop_close(struct inode * inode, struct file * file)
printk(OUR_NAME ": device file closed unexpectedly. Will not stop the WDT!\n");
}
}
wdt_is_open = 0;
clear_bit(0, &wdt_is_open);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment