mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
a7178df5e7
commit
f883d9db00
5 changed files with 49 additions and 155 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue