1 --- asus_acpi.c.orig 2007-11-26 05:46:58.000000000 +0100
2 +++ asus_acpi.c 2007-12-21 03:15:45.000000000 +0100
3 @@ -158,10 +158,15 @@ static struct eeepc_hotk *ehotk;
4 static int eeepc_hotk_add(struct acpi_device *device);
5 static int eeepc_hotk_remove(struct acpi_device *device, int type);
7 +static const struct acpi_device_id eee_device_ids[] = {
12 static struct acpi_driver eeepc_hotk_driver = {
14 .class = EEEPC_HOTK_CLASS,
15 - .ids = EEEPC_HOTK_HID,
16 + .ids = eee_device_ids,
18 .add = eeepc_hotk_add,
19 .remove = eeepc_hotk_remove,
20 @@ -547,7 +552,7 @@ static int asus_hotk_remove(struct acpi_
21 static struct acpi_driver asus_hotk_driver = {
23 .class = ACPI_HOTK_CLASS,
24 - .ids = ACPI_HOTK_HID,
25 + .ids = eee_device_ids,
28 .remove = asus_hotk_remove,
29 @@ -1178,7 +1183,7 @@ static void asus_hotk_notify(acpi_handle
30 hotk->brightness = (event & ~((u32) BR_DOWN));
33 - acpi_bus_generate_event(hotk->device, event,
34 + acpi_bus_generate_proc_event(hotk->device, event,
35 hotk->event_count[event % 128]++);
38 @@ -1785,7 +1790,7 @@ eeepc_hotk_notify(acpi_handle handle, u3
42 - acpi_bus_generate_event(ehotk->device, event, ehotk->event_count[event % 128]++);
43 + acpi_bus_generate_proc_event(ehotk->device, event, ehotk->event_count[event % 128]++);