Loading drivers/watchdog/wdt285.c +16 −15 Original line number Diff line number Diff line Loading @@ -26,9 +26,9 @@ #include <linux/reboot.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/uaccess.h> #include <linux/irq.h> #include <asm/irq.h> #include <asm/uaccess.h> #include <asm/hardware.h> #include <asm/mach-types.h> #include <asm/hardware/dec21285.h> Loading Loading @@ -115,8 +115,8 @@ static int watchdog_release(struct inode *inode, struct file *file) return 0; } static ssize_t watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) static ssize_t watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) { /* * Refresh the timer. Loading @@ -127,13 +127,12 @@ watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) return len; } static struct watchdog_info ident = { static const struct watchdog_info ident = { .options = WDIOF_SETTIMEOUT, .identity = "Footbridge Watchdog", }; static int watchdog_ioctl(struct inode *inode, struct file *file, unsigned int cmd, static long watchdog_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned int new_margin; Loading Loading @@ -182,7 +181,7 @@ static const struct file_operations watchdog_fops = { .owner = THIS_MODULE, .llseek = no_llseek, .write = watchdog_write, .ioctl = watchdog_ioctl, .unlocked_ioctl = watchdog_ioctl, .open = watchdog_open, .release = watchdog_release, }; Loading @@ -204,11 +203,13 @@ static int __init footbridge_watchdog_init(void) if (retval < 0) return retval; printk("Footbridge Watchdog Timer: 0.01, timer margin: %d sec\n", printk(KERN_INFO "Footbridge Watchdog Timer: 0.01, timer margin: %d sec\n", soft_margin); if (machine_is_cats()) printk("Warning: Watchdog reset may not work on this machine.\n"); printk(KERN_WARN "Warning: Watchdog reset may not work on this machine.\n"); return 0; } Loading Loading
drivers/watchdog/wdt285.c +16 −15 Original line number Diff line number Diff line Loading @@ -26,9 +26,9 @@ #include <linux/reboot.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/uaccess.h> #include <linux/irq.h> #include <asm/irq.h> #include <asm/uaccess.h> #include <asm/hardware.h> #include <asm/mach-types.h> #include <asm/hardware/dec21285.h> Loading Loading @@ -115,8 +115,8 @@ static int watchdog_release(struct inode *inode, struct file *file) return 0; } static ssize_t watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) static ssize_t watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) { /* * Refresh the timer. Loading @@ -127,13 +127,12 @@ watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) return len; } static struct watchdog_info ident = { static const struct watchdog_info ident = { .options = WDIOF_SETTIMEOUT, .identity = "Footbridge Watchdog", }; static int watchdog_ioctl(struct inode *inode, struct file *file, unsigned int cmd, static long watchdog_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned int new_margin; Loading Loading @@ -182,7 +181,7 @@ static const struct file_operations watchdog_fops = { .owner = THIS_MODULE, .llseek = no_llseek, .write = watchdog_write, .ioctl = watchdog_ioctl, .unlocked_ioctl = watchdog_ioctl, .open = watchdog_open, .release = watchdog_release, }; Loading @@ -204,11 +203,13 @@ static int __init footbridge_watchdog_init(void) if (retval < 0) return retval; printk("Footbridge Watchdog Timer: 0.01, timer margin: %d sec\n", printk(KERN_INFO "Footbridge Watchdog Timer: 0.01, timer margin: %d sec\n", soft_margin); if (machine_is_cats()) printk("Warning: Watchdog reset may not work on this machine.\n"); printk(KERN_WARN "Warning: Watchdog reset may not work on this machine.\n"); return 0; } Loading