diff options
author | Len Brown <len.brown@intel.com> | 2007-10-10 00:30:19 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-10-10 00:30:19 -0400 |
commit | e270051d9c6e5f0b31668ec1f0d864ab9920ffca (patch) | |
tree | 49c2a5fb6ca6790f9cf070b49552388dadc7fa5b /drivers/acpi/ec.c | |
parent | a2883dfa2e4a94b24109b2bfe735561e50cc44b4 (diff) | |
parent | d5b4a3d0efa36de31b86d5677dad6c36cb8735d7 (diff) | |
download | blackbird-op-linux-e270051d9c6e5f0b31668ec1f0d864ab9920ffca.tar.gz blackbird-op-linux-e270051d9c6e5f0b31668ec1f0d864ab9920ffca.zip |
Pull battery-sbs-ac into release branch
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 3f7935ab0cf5..e9a04052084b 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -425,7 +425,7 @@ int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit, handler->func = func; handler->data = data; mutex_lock(&ec->lock); - list_add_tail(&handler->node, &ec->list); + list_add(&handler->node, &ec->list); mutex_unlock(&ec->lock); return 0; } @@ -440,7 +440,6 @@ void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit) if (query_bit == handler->query_bit) { list_del(&handler->node); kfree(handler); - break; } } mutex_unlock(&ec->lock); |