projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a new package metadata variable MDEPENDS for specifying local menuconfig dependen...
[openwrt.git]
/
package
/
avila-wdt
/
src
/
avila-wdt.c
diff --git
a/package/avila-wdt/src/avila-wdt.c
b/package/avila-wdt/src/avila-wdt.c
index
6b3b42b
..
981f385
100644
(file)
--- a/
package/avila-wdt/src/avila-wdt.c
+++ b/
package/avila-wdt/src/avila-wdt.c
@@
-21,6
+21,8
@@
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
+#include <linux/jiffies.h>
+#include <linux/timer.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
@@
-74,10
+76,8
@@
static void wdt_enable(void)
static void wdt_disable(void)
{
static void wdt_disable(void)
{
- /* NB: we can't turn off the watchdog anymore, so we
- * have to keep running the strobe timer without decrementing
- * the counter */
- clear_bit(WDT_RUNNING, &wdt_status);
+ /* Re-enable clock generator output on GPIO 14/15 */
+ *IXP4XX_GPIO_GPCLKR |= (1 << 8);
}
static int avila_wdt_open(struct inode *inode, struct file *file)
}
static int avila_wdt_open(struct inode *inode, struct file *file)
@@
-209,6
+209,8
@@
static int __init avila_wdt_init(void)
static void __exit avila_wdt_exit(void)
{
misc_deregister(&avila_wdt_miscdev);
static void __exit avila_wdt_exit(void)
{
misc_deregister(&avila_wdt_miscdev);
+ del_timer(&wdt_timer);
+ wdt_disable();
}
}
This page took
0.020547 seconds
and
4
git commands to generate.