aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/nwbutton.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/nwbutton.c')
-rw-r--r--drivers/char/nwbutton.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/nwbutton.c b/drivers/char/nwbutton.c
index 4083b781adbf..7c57ebfa8640 100644
--- a/drivers/char/nwbutton.c
+++ b/drivers/char/nwbutton.c
@@ -4,7 +4,6 @@
4 * 4 *
5 */ 5 */
6 6
7#include <linux/config.h>
8#include <linux/module.h> 7#include <linux/module.h>
9#include <linux/kernel.h> 8#include <linux/kernel.h>
10#include <linux/sched.h> 9#include <linux/sched.h>
@@ -184,7 +183,7 @@ static int button_read (struct file *filp, char __user *buffer,
184 * attempts to perform these operations on the device. 183 * attempts to perform these operations on the device.
185 */ 184 */
186 185
187static struct file_operations button_fops = { 186static const struct file_operations button_fops = {
188 .owner = THIS_MODULE, 187 .owner = THIS_MODULE,
189 .read = button_read, 188 .read = button_read,
190}; 189};
@@ -224,7 +223,7 @@ static int __init nwbutton_init(void)
224 return -EBUSY; 223 return -EBUSY;
225 } 224 }
226 225
227 if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, SA_INTERRUPT, 226 if (request_irq (IRQ_NETWINDER_BUTTON, button_handler, IRQF_DISABLED,
228 "nwbutton", NULL)) { 227 "nwbutton", NULL)) {
229 printk (KERN_WARNING "nwbutton: IRQ %d is not free.\n", 228 printk (KERN_WARNING "nwbutton: IRQ %d is not free.\n",
230 IRQ_NETWINDER_BUTTON); 229 IRQ_NETWINDER_BUTTON);