]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/asus_acpi.c
IB/ipath: Use counters in ipath_poll and cleanup interrupts in ipath_close
[linux-2.6-omap-h63xx.git] / drivers / acpi / asus_acpi.c
index 9c4bd220c44fdf30381046b169c336365f10214a..d915fec9bf63e8c1f085dff9ea18f36f1b7ce20d 100644 (file)
@@ -1069,7 +1069,7 @@ static void asus_hotk_notify(acpi_handle handle, u32 event, void *data)
                hotk->brightness = (event & ~((u32) BR_DOWN));
        }
 
-       acpi_bus_generate_event(hotk->device, event,
+       acpi_bus_generate_proc_event(hotk->device, event,
                                hotk->event_count[event % 128]++);
 
        return;
@@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void)
                        break;
                default:
                        kfree(model);
+                       model = NULL;
                        break;
                }
        }