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/container.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/container.c')
-rw-r--r-- | drivers/acpi/container.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 0dd3bf7c0ed1..3c25ec7a1871 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -52,10 +52,18 @@ MODULE_LICENSE("GPL"); | |||
52 | static int acpi_container_add(struct acpi_device *device); | 52 | static int acpi_container_add(struct acpi_device *device); |
53 | static int acpi_container_remove(struct acpi_device *device, int type); | 53 | static int acpi_container_remove(struct acpi_device *device, int type); |
54 | 54 | ||
55 | static const struct acpi_device_id container_device_ids[] = { | ||
56 | {"ACPI0004", 0}, | ||
57 | {"PNP0A05", 0}, | ||
58 | {"PNP0A06", 0}, | ||
59 | {"", 0}, | ||
60 | }; | ||
61 | MODULE_DEVICE_TABLE(acpi, container_device_ids); | ||
62 | |||
55 | static struct acpi_driver acpi_container_driver = { | 63 | static struct acpi_driver acpi_container_driver = { |
56 | .name = "container", | 64 | .name = "container", |
57 | .class = ACPI_CONTAINER_CLASS, | 65 | .class = ACPI_CONTAINER_CLASS, |
58 | .ids = "ACPI0004,PNP0A05,PNP0A06", | 66 | .ids = container_device_ids, |
59 | .ops = { | 67 | .ops = { |
60 | .add = acpi_container_add, | 68 | .add = acpi_container_add, |
61 | .remove = acpi_container_remove, | 69 | .remove = acpi_container_remove, |