summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/acpi4asus/files/kernel23-fix.patch')
-rw-r--r--app-laptop/acpi4asus/files/kernel23-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/app-laptop/acpi4asus/files/kernel23-fix.patch b/app-laptop/acpi4asus/files/kernel23-fix.patch
new file mode 100644
index 0000000..907fb7e
--- /dev/null
+++ b/app-laptop/acpi4asus/files/kernel23-fix.patch
@@ -0,0 +1,23 @@
+diff -ru acpi4asus.o/driver/asus-laptop.c acpi4asus/driver/asus-laptop.c
+--- acpi4asus.o/driver/asus-laptop.c 2008-01-08 22:16:26.000000000 +0300
++++ acpi4asus/driver/asus-laptop.c 2008-01-08 22:16:46.000000000 +0300
+@@ -731,7 +731,7 @@
+ lcd_blank(FB_BLANK_POWERDOWN);
+ }
+
+- acpi_bus_generate_event(hotk->device, event,
++ acpi_bus_generate_proc_event(hotk->device, event,
+ hotk->event_count[event % 128]++);
+
+ return;
+@@ -1074,8 +1074,8 @@
+ }
+
+ #define ASUS_LED_UNREGISTER(object) \
+- if(object##_led.class_dev \
+- && !IS_ERR(object##_led.class_dev)) \
++ if(object##_led.dev \
++ && !IS_ERR(object##_led.dev)) \
+ led_classdev_unregister(&object##_led)
+
+ static void asus_led_exit(void)