diff options
Diffstat (limited to 'drivers/char/sonypi.c')
-rw-r--r-- | drivers/char/sonypi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 43dfd8689dce..d4e434d694b7 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -33,7 +33,6 @@ | |||
33 | * | 33 | * |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/config.h> | ||
37 | #include <linux/module.h> | 36 | #include <linux/module.h> |
38 | #include <linux/input.h> | 37 | #include <linux/input.h> |
39 | #include <linux/pci.h> | 38 | #include <linux/pci.h> |
@@ -1107,7 +1106,7 @@ static int sonypi_misc_ioctl(struct inode *ip, struct file *fp, | |||
1107 | return ret; | 1106 | return ret; |
1108 | } | 1107 | } |
1109 | 1108 | ||
1110 | static struct file_operations sonypi_misc_fops = { | 1109 | static const struct file_operations sonypi_misc_fops = { |
1111 | .owner = THIS_MODULE, | 1110 | .owner = THIS_MODULE, |
1112 | .read = sonypi_misc_read, | 1111 | .read = sonypi_misc_read, |
1113 | .poll = sonypi_misc_poll, | 1112 | .poll = sonypi_misc_poll, |
@@ -1283,7 +1282,7 @@ static int __devinit sonypi_setup_irq(struct sonypi_device *dev, | |||
1283 | while (irq_list->irq) { | 1282 | while (irq_list->irq) { |
1284 | 1283 | ||
1285 | if (!request_irq(irq_list->irq, sonypi_irq, | 1284 | if (!request_irq(irq_list->irq, sonypi_irq, |
1286 | SA_SHIRQ, "sonypi", sonypi_irq)) { | 1285 | IRQF_SHARED, "sonypi", sonypi_irq)) { |
1287 | dev->irq = irq_list->irq; | 1286 | dev->irq = irq_list->irq; |
1288 | dev->bits = irq_list->bits; | 1287 | dev->bits = irq_list->bits; |
1289 | return 0; | 1288 | return 0; |