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/fan.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/fan.c')
-rw-r--r-- | drivers/acpi/fan.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index ec655c539492..c81f6bdb68b8 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -50,10 +50,16 @@ static int acpi_fan_remove(struct acpi_device *device, int type); | |||
50 | static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state); | 50 | static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state); |
51 | static int acpi_fan_resume(struct acpi_device *device); | 51 | static int acpi_fan_resume(struct acpi_device *device); |
52 | 52 | ||
53 | static const struct acpi_device_id fan_device_ids[] = { | ||
54 | {"PNP0C0B", 0}, | ||
55 | {"", 0}, | ||
56 | }; | ||
57 | MODULE_DEVICE_TABLE(acpi, fan_device_ids); | ||
58 | |||
53 | static struct acpi_driver acpi_fan_driver = { | 59 | static struct acpi_driver acpi_fan_driver = { |
54 | .name = "fan", | 60 | .name = "fan", |
55 | .class = ACPI_FAN_CLASS, | 61 | .class = ACPI_FAN_CLASS, |
56 | .ids = "PNP0C0B", | 62 | .ids = fan_device_ids, |
57 | .ops = { | 63 | .ops = { |
58 | .add = acpi_fan_add, | 64 | .add = acpi_fan_add, |
59 | .remove = acpi_fan_remove, | 65 | .remove = acpi_fan_remove, |