aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/sony-laptop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/sony-laptop.c')
-rw-r--r--drivers/platform/x86/sony-laptop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index 5cd39af376d9..5fa93cb6f337 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -1592,8 +1592,8 @@ static struct sonypi_event sonypi_blueev[] = {
1592 1592
1593/* The set of possible wireless events */ 1593/* The set of possible wireless events */
1594static struct sonypi_event sonypi_wlessev[] = { 1594static struct sonypi_event sonypi_wlessev[] = {
1595 { 0x59, SONYPI_EVENT_WIRELESS_ON }, 1595 { 0x59, SONYPI_EVENT_IGNORE },
1596 { 0x5a, SONYPI_EVENT_WIRELESS_OFF }, 1596 { 0x5a, SONYPI_EVENT_IGNORE },
1597 { 0, 0 } 1597 { 0, 0 }
1598}; 1598};
1599 1599
@@ -2733,6 +2733,9 @@ static irqreturn_t sony_pic_irq(int irq, void *dev_id)
2733 if (ev == dev->event_types[i].events[j].data) { 2733 if (ev == dev->event_types[i].events[j].data) {
2734 device_event = 2734 device_event =
2735 dev->event_types[i].events[j].event; 2735 dev->event_types[i].events[j].event;
2736 /* some events may require ignoring */
2737 if (!device_event)
2738 return IRQ_HANDLED;
2736 goto found; 2739 goto found;
2737 } 2740 }
2738 } 2741 }
@@ -2752,7 +2755,6 @@ found:
2752 sony_laptop_report_input_event(device_event); 2755 sony_laptop_report_input_event(device_event);
2753 acpi_bus_generate_proc_event(dev->acpi_dev, 1, device_event); 2756 acpi_bus_generate_proc_event(dev->acpi_dev, 1, device_event);
2754 sonypi_compat_report_event(device_event); 2757 sonypi_compat_report_event(device_event);
2755
2756 return IRQ_HANDLED; 2758 return IRQ_HANDLED;
2757} 2759}
2758 2760