ACPI: autoload modules - Create ACPI alias interface
commit29b71a1ca74491fab9fed09e9d835d840d042690
authorThomas Renninger <trenn@suse.de>
Mon, 23 Jul 2007 12:43:51 +0000 (23 14:43 +0200)
committerLen Brown <len.brown@intel.com>
Mon, 23 Jul 2007 17:56:16 +0000 (23 13:56 -0400)
treee46dc9c53e4b6266703dedc21925875cea9e4abc
parent8c8eb78f673c07b60f31751e1e47ac367c60c6b7
ACPI: autoload modules - Create ACPI alias interface

Modify modpost (file2alias.c) to add acpi*:XYZ0001: alias in modules.alias
like:
grep acpi /lib/modules/2.6.22-rc4-default/modules.alias
alias acpi*:SNY5001:* sony_laptop
alias acpi*:SNY6001:* sony_laptop
for e.g. the sony_laptop module.
This module matches against all ACPI devices with a HID or CID of SNY5001
or SNY6001

Export an uevent and modalias sysfs file containing the string:
[MODALIAS=]acpi:PNP0C0C:
additional CIDs are concatenated at the end.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c
drivers/pnp/pnpacpi/core.c
include/linux/acpi.h
include/linux/mod_devicetable.h
scripts/mod/file2alias.c