diff options
author | Li Shaohua <shaohua.li@intel.com> | 2006-12-07 07:56:46 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-15 23:38:35 -0500 |
commit | 96333578b023957537c3e98b50af7f3b7e08e411 (patch) | |
tree | 005686677555152dfe51c0edd5273a665c9d5aca /include/acpi/acpi_bus.h | |
parent | c4168bff32e218b8400cb48b48adb9b7f7bb31b8 (diff) |
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 <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 8976dbea63ca..58dc8f651861 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -301,6 +301,7 @@ struct acpi_device { | |||
301 | void *driver_data; | 301 | void *driver_data; |
302 | struct device dev; | 302 | struct device dev; |
303 | struct acpi_bus_ops bus_ops; /* workaround for different code path for hotplug */ | 303 | struct acpi_bus_ops bus_ops; /* workaround for different code path for hotplug */ |
304 | enum acpi_bus_removal_type removal_type; /* indicate for different removal type */ | ||
304 | }; | 305 | }; |
305 | 306 | ||
306 | #define acpi_driver_data(d) ((d)->driver_data) | 307 | #define acpi_driver_data(d) ((d)->driver_data) |