ACPI: convert to sysfs framework

Setup new sysfs framework

1.	Remove /sys/firmware/acpi
2.	Add ACPI device in device tree.

File "eject" for every device that has _EJ0 method is moved from
/sys/firmware to /sys/devices.
Operation on this file is exactly the same as before.
i.e. echo 1 to "eject" will cause hot removal of this device.
Corresponding changes should be made in userspace for hot removal.

Signed-off-by: Li Shaohua <[email protected]>
Signed-off-by: Zhang Rui<[email protected]>
Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
Patrick Mochel 2006-12-07 20:56:38 +08:00 • committed by Len Brown
commit f883d9db00
5 changed files with 49 additions and 155 deletions

View file

@ -299,7 +299,6 @@ struct acpi_device {
struct acpi_device_ops ops;
struct acpi_driver *driver;
void *driver_data;
struct kobject kobj;
struct device dev;
};