Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141876
b: refs/heads/master
c: e747f27
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Mar 27, 2009
1 parent 6d3dae3 commit f816d69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 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: 81d0273df20edff275e2eefe6b50436af3bdf9e8
refs/heads/master: e747f274951507b5a0850155c3d709e26d20de5b
2 changes: 2 additions & 0 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,8 @@ static int __init acpi_init(void)
* will be disabled in the course of device power transistion.
*/
dmi_check_system(power_nocheck_dmi_table);

acpi_scan_init();
return result;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/acpi/internal.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* For use by Linux/ACPI infrastructure, not drivers */

int acpi_scan_init(void);

/* --------------------------------------------------------------------------
Power Resource
-------------------------------------------------------------------------- */
Expand Down
9 changes: 1 addition & 8 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1526,16 +1526,11 @@ static int acpi_bus_scan_fixed(struct acpi_device *root)
return result;
}


static int __init acpi_scan_init(void)
int __init acpi_scan_init(void)
{
int result;
struct acpi_bus_ops ops;


if (acpi_disabled)
return 0;

memset(&ops, 0, sizeof(ops));
ops.acpi_op_add = 1;
ops.acpi_op_start = 1;
Expand Down Expand Up @@ -1568,5 +1563,3 @@ static int __init acpi_scan_init(void)
Done:
return result;
}

subsys_initcall(acpi_scan_init);

0 comments on commit f816d69

Please sign in to comment.