mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI: add acpi_bus_removal_type in acpi_device
Add removal_type in structure acpi_device for hot removal. ACPI_BUS_REMOVAL_EJECT is used for ACPI device hot removal. Only one parameter is allowed in .remove method due to driver model. So removal_type is added to indicate different removal type. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
c4168bff32
commit
96333578b0
2 changed files with 5 additions and 2 deletions
|
|
@ -301,6 +301,7 @@ struct acpi_device {
|
|||
void *driver_data;
|
||||
struct device dev;
|
||||
struct acpi_bus_ops bus_ops; /* workaround for different code path for hotplug */
|
||||
enum acpi_bus_removal_type removal_type; /* indicate for different removal type */
|
||||
};
|
||||
|
||||
#define acpi_driver_data(d) ((d)->driver_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue