diff options
author | Thomas Renninger <trenn@suse.de> | 2007-07-23 08:44:41 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-23 13:56:42 -0400 |
commit | 1ba90e3a87c46500623afdc3898573e4a5ebb21b (patch) | |
tree | b324171b526be3562c87d9ed99ef51c39d77ed45 /drivers/acpi/ac.c | |
parent | 29b71a1ca74491fab9fed09e9d835d840d042690 (diff) |
ACPI: autoload modules - Create __mod_acpi_device_table symbol for all ACPI drivers
modpost is going to use these to create e.g. acpi:ACPI0001
in modules.alias.
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r-- | drivers/acpi/ac.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 37c7dc4f9fe5..d8b35093527a 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
@@ -34,7 +34,6 @@ | |||
34 | 34 | ||
35 | #define ACPI_AC_COMPONENT 0x00020000 | 35 | #define ACPI_AC_COMPONENT 0x00020000 |
36 | #define ACPI_AC_CLASS "ac_adapter" | 36 | #define ACPI_AC_CLASS "ac_adapter" |
37 | #define ACPI_AC_HID "ACPI0003" | ||
38 | #define ACPI_AC_DEVICE_NAME "AC Adapter" | 37 | #define ACPI_AC_DEVICE_NAME "AC Adapter" |
39 | #define ACPI_AC_FILE_STATE "state" | 38 | #define ACPI_AC_FILE_STATE "state" |
40 | #define ACPI_AC_NOTIFY_STATUS 0x80 | 39 | #define ACPI_AC_NOTIFY_STATUS 0x80 |
@@ -56,10 +55,16 @@ static int acpi_ac_add(struct acpi_device *device); | |||
56 | static int acpi_ac_remove(struct acpi_device *device, int type); | 55 | static int acpi_ac_remove(struct acpi_device *device, int type); |
57 | static int acpi_ac_open_fs(struct inode *inode, struct file *file); | 56 | static int acpi_ac_open_fs(struct inode *inode, struct file *file); |
58 | 57 | ||
58 | const static struct acpi_device_id ac_device_ids[] = { | ||
59 | {"ACPI0003", 0}, | ||
60 | {"", 0}, | ||
61 | }; | ||
62 | MODULE_DEVICE_TABLE(acpi, ac_device_ids); | ||
63 | |||
59 | static struct acpi_driver acpi_ac_driver = { | 64 | static struct acpi_driver acpi_ac_driver = { |
60 | .name = "ac", | 65 | .name = "ac", |
61 | .class = ACPI_AC_CLASS, | 66 | .class = ACPI_AC_CLASS, |
62 | .ids = ACPI_AC_HID, | 67 | .ids = ac_device_ids, |
63 | .ops = { | 68 | .ops = { |
64 | .add = acpi_ac_add, | 69 | .add = acpi_ac_add, |
65 | .remove = acpi_ac_remove, | 70 | .remove = acpi_ac_remove, |