diff options
author | Len Brown <len.brown@intel.com> | 2009-04-05 01:38:31 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-04-05 01:38:31 -0400 |
commit | 9a38f4eec57cc5104b6a85bc6d0a91b268fbe803 (patch) | |
tree | da01b5dd92d4076878003a8886fc2c9265e578f5 /drivers/acpi/bus.c | |
parent | 67dc092187626ac55a60877485f78bc291cbfa81 (diff) | |
parent | 018f452e9d9d0cb5c3e8d33fd94dc6cd3c520a8f (diff) |
Merge branch 'bjorn-initcall-cleanup' into release
Diffstat (limited to 'drivers/acpi/bus.c')
-rw-r--r-- | drivers/acpi/bus.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index bee64b73c919..e8f7b64e92da 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -39,6 +39,8 @@ | |||
39 | #include <acpi/acpi_bus.h> | 39 | #include <acpi/acpi_bus.h> |
40 | #include <acpi/acpi_drivers.h> | 40 | #include <acpi/acpi_drivers.h> |
41 | 41 | ||
42 | #include "internal.h" | ||
43 | |||
42 | #define _COMPONENT ACPI_BUS_COMPONENT | 44 | #define _COMPONENT ACPI_BUS_COMPONENT |
43 | ACPI_MODULE_NAME("bus"); | 45 | ACPI_MODULE_NAME("bus"); |
44 | 46 | ||
@@ -846,6 +848,7 @@ static int __init acpi_init(void) | |||
846 | acpi_kobj = NULL; | 848 | acpi_kobj = NULL; |
847 | } | 849 | } |
848 | 850 | ||
851 | init_acpi_device_notify(); | ||
849 | result = acpi_bus_init(); | 852 | result = acpi_bus_init(); |
850 | 853 | ||
851 | if (!result) { | 854 | if (!result) { |
@@ -860,11 +863,23 @@ static int __init acpi_init(void) | |||
860 | } | 863 | } |
861 | } else | 864 | } else |
862 | disable_acpi(); | 865 | disable_acpi(); |
866 | |||
867 | if (acpi_disabled) | ||
868 | return result; | ||
869 | |||
863 | /* | 870 | /* |
864 | * If the laptop falls into the DMI check table, the power state check | 871 | * If the laptop falls into the DMI check table, the power state check |
865 | * will be disabled in the course of device power transistion. | 872 | * will be disabled in the course of device power transistion. |
866 | */ | 873 | */ |
867 | dmi_check_system(power_nocheck_dmi_table); | 874 | dmi_check_system(power_nocheck_dmi_table); |
875 | |||
876 | acpi_scan_init(); | ||
877 | acpi_ec_init(); | ||
878 | acpi_power_init(); | ||
879 | acpi_system_init(); | ||
880 | acpi_debug_init(); | ||
881 | acpi_sleep_proc_init(); | ||
882 | acpi_wakeup_device_init(); | ||
868 | return result; | 883 | return result; |
869 | } | 884 | } |
870 | 885 | ||