aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r--drivers/acpi/video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 1e0a9e17c31d..f94d4c818fc7 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1448,8 +1448,7 @@ static void acpi_video_bus_notify(struct acpi_device *device, u32 event)
1448 case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, 1448 case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch,
1449 * most likely via hotkey. */ 1449 * most likely via hotkey. */
1450 acpi_bus_generate_proc_event(device, event, 0); 1450 acpi_bus_generate_proc_event(device, event, 0);
1451 if (!acpi_notifier_call_chain(device, event, 0)) 1451 keycode = KEY_SWITCHVIDEOMODE;
1452 keycode = KEY_SWITCHVIDEOMODE;
1453 break; 1452 break;
1454 1453
1455 case ACPI_VIDEO_NOTIFY_PROBE: /* User plugged in or removed a video 1454 case ACPI_VIDEO_NOTIFY_PROBE: /* User plugged in or removed a video
@@ -1479,8 +1478,9 @@ static void acpi_video_bus_notify(struct acpi_device *device, u32 event)
1479 break; 1478 break;
1480 } 1479 }
1481 1480
1482 if (event != ACPI_VIDEO_NOTIFY_SWITCH) 1481 if (acpi_notifier_call_chain(device, event, 0))
1483 acpi_notifier_call_chain(device, event, 0); 1482 /* Something vetoed the keypress. */
1483 keycode = 0;
1484 1484
1485 if (keycode) { 1485 if (keycode) {
1486 input_report_key(input, keycode, 1); 1486 input_report_key(input, keycode, 1);