X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fnwbutton.c;h=4083b781adbffb355f2190d5d12b6df242d35afd;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=7c57ebfa8640a578d2840ba00a38cef5388eb761;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/drivers/char/nwbutton.c b/drivers/char/nwbutton.c index 7c57ebfa8..4083b781a 100644 --- a/drivers/char/nwbutton.c +++ b/drivers/char/nwbutton.c @@ -4,6 +4,7 @@ * */ +#include #include #include #include @@ -183,7 +184,7 @@ static int button_read (struct file *filp, char __user *buffer, * attempts to perform these operations on the device. */ -static const struct file_operations button_fops = { +static struct file_operations button_fops = { .owner = THIS_MODULE, .read = button_read, }; @@ -223,7 +224,7 @@ static int __init nwbutton_init(void) return -EBUSY; } - if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, IRQF_DISABLED, + if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, SA_INTERRUPT, "nwbutton", NULL)) { printk (KERN_WARNING "nwbutton: IRQ %d is not free.\n", IRQ_NETWINDER_BUTTON);