Update for acpi autoload modules changes from Linux 2.6.23 (commits 8c8eb78f673c07b60f31751e1e47ac367c60c6b7, 29b71a1ca74491fab9fed09e9d835d840d042690, 1ba90e3a87c46500623afdc3898573e4a5ebb21b) Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com> --- dkms-pcc-acpi-0.9/pcc_acpi.c.orig 2008-03-23 20:57:20.000000000 -0300 +++ dkms-pcc-acpi-0.9/pcc_acpi.c 2008-03-23 21:07:38.000000000 -0300 @@ -168,7 +168,6 @@ MODULE_LICENSE("GPL"); #define METHOD_HKEY_SQTY "SQTY" #define METHOD_HKEY_SINF "SINF" #define METHOD_HKEY_SSET "SSET" -#define HKEY_HID "MAT0012,MAT0013,MAT0018,MAT0019" #define HKEY_NOTIFY 0x80 /* for brightness control */ @@ -214,11 +213,19 @@ static int acpi_pcc_hotkey_add(struct ac static int acpi_pcc_hotkey_remove(struct acpi_device *device, int type); static int acpi_pcc_hotkey_resume(struct acpi_device *device, int state); +const static struct acpi_device_id pcc_device_ids[] = { + {"MAT0012", 0}, + {"MAT0013", 0}, + {"MAT0018", 0}, + {"MAT0019", 0}, + {"", 0}, +}; +MODULE_DEVICE_TABLE(acpi, pcc_device_ids); static struct acpi_driver acpi_pcc_driver = { .name = ACPI_PCC_DRIVER_NAME, .class = ACPI_PCC_CLASS, - .ids = HKEY_HID, + .ids = pcc_device_ids, .ops = { .add = acpi_pcc_hotkey_add, .remove = acpi_pcc_hotkey_remove,