[0/12] acpi: make ACPI use driver model

Zhang Rui
2006-09-22T09:12:55Z

Make ACPI use driver model.

Patrick has posted patches on rewriting ACPI driver model in November 2005.
And recently Shaohua send me a prototype on making ACPI use driver model.
This patch series bases on both Patrick and Shaohua's previous work.

Two features are gonna to be changed by applying this series of patches.
1. ACPI driver model.
ACPI driver are made to follow Linux driver model.
The mainly work is to convert the registeration interfaces, so that
ACPI devices are registered with the global device tree.
Note the new .uevent method mark ACPI drivers by PNPID
instead of by name. Udev script needs to look for "HWID = "
or "COMPTID = " to load the right ACPI driver.
2. ACPI sysfs interface.
As a result of using driver model, ACPI devices is added in the
/sys/device tree. So after _EJ0 is added as a property of
ACPI device in device tree, /sys/firm/acpi is deleted.
Note that the corresponding userspace script needs to be changed
for hot removal.

Note that this is only the first step of ACPI sysfs convert project.
The next step is to duplicate /proc/acpi functions in /sys/device tree.