diff options
Diffstat (limited to 'drivers/acpi/asus_acpi.c')
-rw-r--r-- | drivers/acpi/asus_acpi.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c index 3cd79caad70c..9c4bd220c44f 100644 --- a/drivers/acpi/asus_acpi.c +++ b/drivers/acpi/asus_acpi.c | |||
@@ -56,7 +56,6 @@ | |||
56 | #define ACPI_HOTK_NAME "Asus Laptop ACPI Extras Driver" | 56 | #define ACPI_HOTK_NAME "Asus Laptop ACPI Extras Driver" |
57 | #define ACPI_HOTK_CLASS "hotkey" | 57 | #define ACPI_HOTK_CLASS "hotkey" |
58 | #define ACPI_HOTK_DEVICE_NAME "Hotkey" | 58 | #define ACPI_HOTK_DEVICE_NAME "Hotkey" |
59 | #define ACPI_HOTK_HID "ATK0100" | ||
60 | 59 | ||
61 | /* | 60 | /* |
62 | * Some events we use, same for all Asus | 61 | * Some events we use, same for all Asus |
@@ -426,14 +425,20 @@ static struct acpi_table_header *asus_info; | |||
426 | static struct asus_hotk *hotk; | 425 | static struct asus_hotk *hotk; |
427 | 426 | ||
428 | /* | 427 | /* |
429 | * The hotkey driver declaration | 428 | * The hotkey driver and autoloading declaration |
430 | */ | 429 | */ |
431 | static int asus_hotk_add(struct acpi_device *device); | 430 | static int asus_hotk_add(struct acpi_device *device); |
432 | static int asus_hotk_remove(struct acpi_device *device, int type); | 431 | static int asus_hotk_remove(struct acpi_device *device, int type); |
432 | static const struct acpi_device_id asus_device_ids[] = { | ||
433 | {"ATK0100", 0}, | ||
434 | {"", 0}, | ||
435 | }; | ||
436 | MODULE_DEVICE_TABLE(acpi, asus_device_ids); | ||
437 | |||
433 | static struct acpi_driver asus_hotk_driver = { | 438 | static struct acpi_driver asus_hotk_driver = { |
434 | .name = "asus_acpi", | 439 | .name = "asus_acpi", |
435 | .class = ACPI_HOTK_CLASS, | 440 | .class = ACPI_HOTK_CLASS, |
436 | .ids = ACPI_HOTK_HID, | 441 | .ids = asus_device_ids, |
437 | .ops = { | 442 | .ops = { |
438 | .add = asus_hotk_add, | 443 | .add = asus_hotk_add, |
439 | .remove = asus_hotk_remove, | 444 | .remove = asus_hotk_remove, |