diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index cad932de383d..81651032791b 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -41,7 +41,6 @@ | |||
41 | 41 | ||
42 | #define ACPI_BATTERY_COMPONENT 0x00040000 | 42 | #define ACPI_BATTERY_COMPONENT 0x00040000 |
43 | #define ACPI_BATTERY_CLASS "battery" | 43 | #define ACPI_BATTERY_CLASS "battery" |
44 | #define ACPI_BATTERY_HID "PNP0C0A" | ||
45 | #define ACPI_BATTERY_DEVICE_NAME "Battery" | 44 | #define ACPI_BATTERY_DEVICE_NAME "Battery" |
46 | #define ACPI_BATTERY_NOTIFY_STATUS 0x80 | 45 | #define ACPI_BATTERY_NOTIFY_STATUS 0x80 |
47 | #define ACPI_BATTERY_NOTIFY_INFO 0x81 | 46 | #define ACPI_BATTERY_NOTIFY_INFO 0x81 |
@@ -74,10 +73,16 @@ static int acpi_battery_add(struct acpi_device *device); | |||
74 | static int acpi_battery_remove(struct acpi_device *device, int type); | 73 | static int acpi_battery_remove(struct acpi_device *device, int type); |
75 | static int acpi_battery_resume(struct acpi_device *device); | 74 | static int acpi_battery_resume(struct acpi_device *device); |
76 | 75 | ||
76 | static const struct acpi_device_id battery_device_ids[] = { | ||
77 | {"PNP0C0A", 0}, | ||
78 | {"", 0}, | ||
79 | }; | ||
80 | MODULE_DEVICE_TABLE(acpi, battery_device_ids); | ||
81 | |||
77 | static struct acpi_driver acpi_battery_driver = { | 82 | static struct acpi_driver acpi_battery_driver = { |
78 | .name = "battery", | 83 | .name = "battery", |
79 | .class = ACPI_BATTERY_CLASS, | 84 | .class = ACPI_BATTERY_CLASS, |
80 | .ids = ACPI_BATTERY_HID, | 85 | .ids = battery_device_ids, |
81 | .ops = { | 86 | .ops = { |
82 | .add = acpi_battery_add, | 87 | .add = acpi_battery_add, |
83 | .resume = acpi_battery_resume, | 88 | .resume = acpi_battery_resume, |