aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLi Shaohua <shaohua.li@intel.com>2006-12-07 07:56:41 -0500
committerLen Brown <len.brown@intel.com>2006-12-15 23:38:34 -0500
commitc4168bff32e218b8400cb48b48adb9b7f7bb31b8 (patch)
tree48605aa258cf7acf108cb7c1a3419c4b7dc0e415 /include
parentf883d9db008deb20d4969c26475100cec2b7f6f8 (diff)
ACPI: add acpi_bus_ops in acpi_device
Add acpi_bus_ops in acpi_device to support acpi hot plug. NOTE: Two methods .add and .start in acpi_driver.ops are called separately to probe ACPI devices, while only .probe method is called in driver model. As executing .add and .start separately is critical for ACPI device hot plug, we use acpi_bus_ops to distinguish different code path. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 598fab352814..8976dbea63ca 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -300,6 +300,7 @@ struct acpi_device {
300 struct acpi_driver *driver; 300 struct acpi_driver *driver;
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}; 304};
304 305
305#define acpi_driver_data(d) ((d)->driver_data) 306#define acpi_driver_data(d) ((d)->driver_data)