diff options
author | Len Brown <len.brown@intel.com> | 2007-07-25 01:36:53 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-25 01:36:53 -0400 |
commit | 323ef30af3a0da47cc761b04b262d98d0fe79126 (patch) | |
tree | 37636b25acc557969aee51f1fe3e3cbc7a9760ea /drivers/acpi/sbs.c | |
parent | cb3e0c107bebc6cf3e7158f7aa54c32017c7d4c4 (diff) | |
parent | 1ba90e3a87c46500623afdc3898573e4a5ebb21b (diff) |
Pull auto-load-modules into release branch
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 974d00ccfe8..7d8e78ea13a 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c @@ -38,7 +38,6 @@ #define ACPI_SBS_CLASS "sbs" #define ACPI_AC_CLASS "ac_adapter" #define ACPI_BATTERY_CLASS "battery" -#define ACPI_SBS_HID "ACPI0002" #define ACPI_SBS_DEVICE_NAME "Smart Battery System" #define ACPI_SBS_FILE_INFO "info" #define ACPI_SBS_FILE_STATE "state" @@ -124,10 +123,17 @@ static int acpi_sbs_add(struct acpi_device *device); static int acpi_sbs_remove(struct acpi_device *device, int type); static int acpi_sbs_resume(struct acpi_device *device); +static const struct acpi_device_id sbs_device_ids[] = { + {"ACPI0001", 0}, + {"ACPI0005", 0}, + {"", 0}, +}; +MODULE_DEVICE_TABLE(acpi, sbs_device_ids); + static struct acpi_driver acpi_sbs_driver = { .name = "sbs", .class = ACPI_SBS_CLASS, - .ids = "ACPI0001,ACPI0005", + .ids = sbs_device_ids, .ops = { .add = acpi_sbs_add, .remove = acpi_sbs_remove, |