Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117354
b: refs/heads/master
c: 455c879
h: refs/heads/master
v: v3
  • Loading branch information
Zhao Yakui authored and Len Brown committed Oct 11, 2008
1 parent dd164ea commit 7529966
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8463200a00fe2aea938b40173198a0983f2929ef
refs/heads/master: 455c8793d2c49eaecad038c8de83dade9fc3759f
6 changes: 6 additions & 0 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,12 @@ static int __init acpi_bus_init(void)
goto error1;
}

/*
* Maybe EC region is required at bus_scan/acpi_get_devices. So it
* is necessary to enable it as early as possible.
*/
acpi_boot_ec_enable();

printk(KERN_INFO PREFIX "Interpreter enabled\n");

/* Initialize sleep structures */
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,6 @@ static int acpi_bus_scan_fixed(struct acpi_device *root)
return result;
}

int __init acpi_boot_ec_enable(void);

static int __init acpi_scan_init(void)
{
Expand Down Expand Up @@ -1579,9 +1578,6 @@ static int __init acpi_scan_init(void)
*/
result = acpi_bus_scan_fixed(acpi_root);

/* EC region might be needed at bus_scan, so enable it now */
acpi_boot_ec_enable();

if (!result)
result = acpi_bus_scan(acpi_root, &ops);

Expand Down
1 change: 1 addition & 0 deletions trunk/include/acpi/acpi_drivers.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ int acpi_power_transition(struct acpi_device *device, int state);
-------------------------------------------------------------------------- */
#ifdef CONFIG_ACPI_EC
int acpi_ec_ecdt_probe(void);
int acpi_boot_ec_enable(void);
#endif

/* --------------------------------------------------------------------------
Expand Down

0 comments on commit 7529966

Please sign in to comment.