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/power.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/power.c')
-rw-r--r-- | drivers/acpi/power.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 4ffecd179702..57b9a2998fd0 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -59,10 +59,16 @@ static int acpi_power_remove(struct acpi_device *device, int type); | |||
59 | static int acpi_power_resume(struct acpi_device *device); | 59 | static int acpi_power_resume(struct acpi_device *device); |
60 | static int acpi_power_open_fs(struct inode *inode, struct file *file); | 60 | static int acpi_power_open_fs(struct inode *inode, struct file *file); |
61 | 61 | ||
62 | static struct acpi_device_id power_device_ids[] = { | ||
63 | {ACPI_POWER_HID, 0}, | ||
64 | {"", 0}, | ||
65 | }; | ||
66 | MODULE_DEVICE_TABLE(acpi, power_device_ids); | ||
67 | |||
62 | static struct acpi_driver acpi_power_driver = { | 68 | static struct acpi_driver acpi_power_driver = { |
63 | .name = "power", | 69 | .name = "power", |
64 | .class = ACPI_POWER_CLASS, | 70 | .class = ACPI_POWER_CLASS, |
65 | .ids = ACPI_POWER_HID, | 71 | .ids = power_device_ids, |
66 | .ops = { | 72 | .ops = { |
67 | .add = acpi_power_add, | 73 | .add = acpi_power_add, |
68 | .remove = acpi_power_remove, | 74 | .remove = acpi_power_remove, |