Add patches accepted for 2.6.25-rc3
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.25-rc3 / 0004-ACPI-thinkpad-acpi-synchronize-input-device-switch.patch
bloba9c9fd1f94340581bf990bbbd87c1348fd7469c3
1 From 7526696a013f33d4926fdc080c26fe6af07ba30f Mon Sep 17 00:00:00 2001
2 From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
3 Date: Sat, 16 Feb 2008 02:17:53 -0200
4 Subject: ACPI: thinkpad-acpi: synchronize input device switches
6 Issue EV_SW events at module init time to synchronize the input device with
7 the current state of the switch, otherwise we might lose the first event.
9 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
10 Signed-off-by: Len Brown <len.brown@intel.com>
11 ---
12 drivers/misc/thinkpad_acpi.c | 1 +
13 1 files changed, 1 insertions(+), 0 deletions(-)
15 diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
16 index 6da3f40..02f9465 100644
17 --- a/drivers/misc/thinkpad_acpi.c
18 +++ b/drivers/misc/thinkpad_acpi.c
19 @@ -2034,6 +2034,7 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
20 tpacpi_inputdev->close = &hotkey_inputdev_close;
22 hotkey_poll_setup_safe(1);
23 + tpacpi_input_send_radiosw();
26 return (tp_features.hotkey)? 0 : 1;
27 --
28 1.5.4.2