diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-08-27 22:04:29 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-09-23 23:04:43 -0400 |
commit | 6bd00a61ab63d4ceb635ae0316353c11c900b8d8 (patch) | |
tree | 249e417279df1448f1ad43c135c22990b5dde2cb /include/acpi | |
parent | db350b084dc2cf816288643861ce07b0562dd723 (diff) |
ACPI: introduce notifier change to avoid duplicates
The battery driver already registers notification handler.
To avoid registering notification handler again,
introduce a notifier chain in global system notifier handler
and use it in dock driver.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index a5ac0bc7f52e..f74f882609f8 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -327,6 +327,9 @@ int acpi_bus_get_private_data(acpi_handle, void **); | |||
327 | extern int acpi_notifier_call_chain(struct acpi_device *, u32, u32); | 327 | extern int acpi_notifier_call_chain(struct acpi_device *, u32, u32); |
328 | extern int register_acpi_notifier(struct notifier_block *); | 328 | extern int register_acpi_notifier(struct notifier_block *); |
329 | extern int unregister_acpi_notifier(struct notifier_block *); | 329 | extern int unregister_acpi_notifier(struct notifier_block *); |
330 | |||
331 | extern int register_acpi_bus_notifier(struct notifier_block *nb); | ||
332 | extern void unregister_acpi_bus_notifier(struct notifier_block *nb); | ||
330 | /* | 333 | /* |
331 | * External Functions | 334 | * External Functions |
332 | */ | 335 | */ |