View | Details | Raw Unified | Return to bug 334806
Collapse All | Expand All

(-)file_not_specified_in_diff (-11 / +14 lines)
Line  Link Here
0
-- linux-2.6.22.9-0.4/drivers/acpi/ec.c
0
++ linux-2.6.22.9-0.4/drivers/acpi/ec.c
Lines 823-840 Link Here
823
	/*
823
	/*
824
	 * Generate a boot ec context
824
	 * Generate a boot ec context
825
	 */
825
	 */
826
827
	status = acpi_get_table(ACPI_SIG_ECDT, 1,
826
	status = acpi_get_table(ACPI_SIG_ECDT, 1,
828
				(struct acpi_table_header **)&ecdt_ptr);
827
				(struct acpi_table_header **)&ecdt_ptr);
829
	if (ACPI_FAILURE(status))
828
	if (ACPI_SUCCESS(status)) {
830
		goto error;
829
		printk(KERN_INFO PREFIX "EC description table is found, configuring boot EC\n\n");
831
830
		boot_ec->command_addr = ecdt_ptr->control.address;
832
	ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found ECDT"));
831
		boot_ec->data_addr = ecdt_ptr->data.address;
833
832
		boot_ec->gpe = ecdt_ptr->gpe;
834
	boot_ec->command_addr = ecdt_ptr->control.address;
833
		boot_ec->handle = ACPI_ROOT_OBJECT;
835
	boot_ec->data_addr = ecdt_ptr->data.address;
834
	} else {
836
	boot_ec->gpe = ecdt_ptr->gpe;
835
		printk(KERN_DEBUG PREFIX "Look up EC in DSDT\n");
837
	boot_ec->handle = ACPI_ROOT_OBJECT;
836
		status = acpi_get_devices(ec_device_ids[0].id, ec_parse_device,
837
						boot_ec, NULL);
838
		if (ACPI_FAILURE(status))
839
			goto error;
840
	}
838
841
839
	ret = ec_install_handlers(boot_ec);
842
	ret = ec_install_handlers(boot_ec);
840
	if (!ret) {
843
	if (!ret) {

Return to bug 334806