]> err.no Git - linux-2.6/commitdiff
ACPI video hotkey: remove invalid events handler for video output devices
authorZhang Rui <rui.zhang@intel.com>
Mon, 20 Aug 2007 10:23:51 +0000 (18:23 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 24 Aug 2007 03:06:11 +0000 (23:06 -0400)
Both ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE
are valid for video bus devices only. Actually ACPI video output
device should never be notified for a output device switch/probe.

ACPI bus devices notify handler already has the code to
handle these kinds of events.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index d98701941981421837a7c622da0a416eccad8442..8efdea587ae3050b3dcd7608e3d210455a4f8f06 100644 (file)
@@ -1813,10 +1813,6 @@ static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data)
        device = video_device->dev;
 
        switch (event) {
-       case ACPI_VIDEO_NOTIFY_SWITCH:  /* change in status (cycle output device) */
-       case ACPI_VIDEO_NOTIFY_PROBE:   /* change in status (output device status) */
-               acpi_bus_generate_event(device, event, 0);
-               break;
        case ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS:        /* Cycle brightness */
        case ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS:  /* Increase brightness */
        case ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS:  /* Decrease brightness */