X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fwatchdog%2Fwdt.c;h=ec7e401228ee85d85d100ed331cc677796b0f039;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=70be81e39a61b3284cd86775ebcdc6fa0d9f54c3;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/drivers/char/watchdog/wdt.c b/drivers/char/watchdog/wdt.c index 70be81e39..ec7e40122 100644 --- a/drivers/char/watchdog/wdt.c +++ b/drivers/char/watchdog/wdt.c @@ -31,6 +31,7 @@ * Matt Domsch : Added nowayout module option */ +#include #include #include #include @@ -494,7 +495,7 @@ static int wdt_notify_sys(struct notifier_block *this, unsigned long code, */ -static const struct file_operations wdt_fops = { +static struct file_operations wdt_fops = { .owner = THIS_MODULE, .llseek = no_llseek, .write = wdt_write, @@ -510,7 +511,7 @@ static struct miscdevice wdt_miscdev = { }; #ifdef CONFIG_WDT_501 -static const struct file_operations wdt_temp_fops = { +static struct file_operations wdt_temp_fops = { .owner = THIS_MODULE, .llseek = no_llseek, .read = wdt_temp_read, @@ -580,7 +581,7 @@ static int __init wdt_init(void) goto out; } - ret = request_irq(irq, wdt_interrupt, IRQF_DISABLED, "wdt501p", NULL); + ret = request_irq(irq, wdt_interrupt, SA_INTERRUPT, "wdt501p", NULL); if(ret) { printk(KERN_ERR "wdt: IRQ %d is not free.\n", irq); goto outreg;