diff options
Diffstat (limited to 'drivers/acpi/sbs.c')
-rw-r--r-- | drivers/acpi/sbs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index 974d00ccfe84..7d8e78ea13a5 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #define ACPI_SBS_CLASS "sbs" | 38 | #define ACPI_SBS_CLASS "sbs" |
39 | #define ACPI_AC_CLASS "ac_adapter" | 39 | #define ACPI_AC_CLASS "ac_adapter" |
40 | #define ACPI_BATTERY_CLASS "battery" | 40 | #define ACPI_BATTERY_CLASS "battery" |
41 | #define ACPI_SBS_HID "ACPI0002" | ||
42 | #define ACPI_SBS_DEVICE_NAME "Smart Battery System" | 41 | #define ACPI_SBS_DEVICE_NAME "Smart Battery System" |
43 | #define ACPI_SBS_FILE_INFO "info" | 42 | #define ACPI_SBS_FILE_INFO "info" |
44 | #define ACPI_SBS_FILE_STATE "state" | 43 | #define ACPI_SBS_FILE_STATE "state" |
@@ -124,10 +123,17 @@ static int acpi_sbs_add(struct acpi_device *device); | |||
124 | static int acpi_sbs_remove(struct acpi_device *device, int type); | 123 | static int acpi_sbs_remove(struct acpi_device *device, int type); |
125 | static int acpi_sbs_resume(struct acpi_device *device); | 124 | static int acpi_sbs_resume(struct acpi_device *device); |
126 | 125 | ||
126 | static const struct acpi_device_id sbs_device_ids[] = { | ||
127 | {"ACPI0001", 0}, | ||
128 | {"ACPI0005", 0}, | ||
129 | {"", 0}, | ||
130 | }; | ||
131 | MODULE_DEVICE_TABLE(acpi, sbs_device_ids); | ||
132 | |||
127 | static struct acpi_driver acpi_sbs_driver = { | 133 | static struct acpi_driver acpi_sbs_driver = { |
128 | .name = "sbs", | 134 | .name = "sbs", |
129 | .class = ACPI_SBS_CLASS, | 135 | .class = ACPI_SBS_CLASS, |
130 | .ids = "ACPI0001,ACPI0005", | 136 | .ids = sbs_device_ids, |
131 | .ops = { | 137 | .ops = { |
132 | .add = acpi_sbs_add, | 138 | .add = acpi_sbs_add, |
133 | .remove = acpi_sbs_remove, | 139 | .remove = acpi_sbs_remove, |