aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2011-04-26 04:29:55 -0400
committerLen Brown <len.brown@intel.com>2011-05-29 02:59:50 -0400
commit08b53f0e6b565fe8dc0b8f929960ed16d76291bd (patch)
tree2e8c56e74e5cc78c9f022760c95075c885e59357 /drivers
parent1cb7b1e0de6a1f8f071f4a146e3d10f3a662f707 (diff)
ACPI EC: remove redundant code
ec->handle is set in ec_parse_device(), so don't bother to set it again. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/ec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index b3f1d6f52a89..ed8cf17cf03c 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -804,8 +804,6 @@ static int acpi_ec_add(struct acpi_device *device)
804 return -EINVAL; 804 return -EINVAL;
805 } 805 }
806 806
807 ec->handle = device->handle;
808
809 /* Find and register all query methods */ 807 /* Find and register all query methods */
810 acpi_walk_namespace(ACPI_TYPE_METHOD, ec->handle, 1, 808 acpi_walk_namespace(ACPI_TYPE_METHOD, ec->handle, 1,
811 acpi_ec_register_query_methods, NULL, ec, NULL); 809 acpi_ec_register_query_methods, NULL, ec, NULL);