ACPI: introduce notifier change to avoid duplicates
authorShaohua Li <shaohua.li@intel.com>
Thu, 28 Aug 2008 02:04:29 +0000 (10:04 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 24 Sep 2008 03:04:43 +0000 (23:04 -0400)
commit6bd00a61ab63d4ceb635ae0316353c11c900b8d8
tree249e417279df1448f1ad43c135c22990b5dde2cb
parentdb350b084dc2cf816288643861ce07b0562dd723
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>
drivers/acpi/bus.c
drivers/acpi/dock.c
include/acpi/acpi_bus.h