diff options
author | Len Brown <len.brown@intel.com> | 2007-05-30 00:26:11 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-05-30 00:26:11 -0400 |
commit | dd272b5716a54afa33a69f2241284d8ec60b7892 (patch) | |
tree | 55149eaeff58b0406cf9a86de5b38606bca5924c | |
parent | f507654d450d329c81a70eec0096d5dfe67802ec (diff) |
ACPI: add __init to acpi_initialize_subsystem()
Add __init to:
acpi_initialize_subsystem() (and un-export it)
acpi_os_initialize()
Add __initdata to:
acpi_osl_dmi_table[]
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/osl.c | 6 | ||||
-rw-r--r-- | drivers/acpi/utilities/utxface.c | 4 | ||||
-rw-r--r-- | include/acpi/acpiosxf.h | 2 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 2 |
4 files changed, 6 insertions, 8 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index e349879d9246..58ceb18ec997 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -86,7 +86,7 @@ int osi_linux; /* disable _OSI(Linux) by default */ | |||
86 | 86 | ||
87 | 87 | ||
88 | #ifdef CONFIG_DMI | 88 | #ifdef CONFIG_DMI |
89 | static struct dmi_system_id acpi_osl_dmi_table[]; | 89 | static struct __initdata dmi_system_id acpi_osl_dmi_table[]; |
90 | #endif | 90 | #endif |
91 | 91 | ||
92 | static void __init acpi_request_region (struct acpi_generic_address *addr, | 92 | static void __init acpi_request_region (struct acpi_generic_address *addr, |
@@ -137,7 +137,7 @@ static int __init acpi_reserve_resources(void) | |||
137 | } | 137 | } |
138 | device_initcall(acpi_reserve_resources); | 138 | device_initcall(acpi_reserve_resources); |
139 | 139 | ||
140 | acpi_status acpi_os_initialize(void) | 140 | acpi_status __init acpi_os_initialize(void) |
141 | { | 141 | { |
142 | dmi_check_system(acpi_osl_dmi_table); | 142 | dmi_check_system(acpi_osl_dmi_table); |
143 | return AE_OK; | 143 | return AE_OK; |
@@ -1243,7 +1243,7 @@ static int dmi_osi_linux(struct dmi_system_id *d) | |||
1243 | } | 1243 | } |
1244 | #endif | 1244 | #endif |
1245 | 1245 | ||
1246 | static struct dmi_system_id acpi_osl_dmi_table[] = { | 1246 | static struct dmi_system_id acpi_osl_dmi_table[] __initdata = { |
1247 | #ifdef OSI_LINUX_ENABLED | 1247 | #ifdef OSI_LINUX_ENABLED |
1248 | /* | 1248 | /* |
1249 | * Boxes that need NOT _OSI(Linux) | 1249 | * Boxes that need NOT _OSI(Linux) |
diff --git a/drivers/acpi/utilities/utxface.c b/drivers/acpi/utilities/utxface.c index e9a57806cd34..2d496918b3cd 100644 --- a/drivers/acpi/utilities/utxface.c +++ b/drivers/acpi/utilities/utxface.c | |||
@@ -61,7 +61,7 @@ ACPI_MODULE_NAME("utxface") | |||
61 | * called, so any early initialization belongs here. | 61 | * called, so any early initialization belongs here. |
62 | * | 62 | * |
63 | ******************************************************************************/ | 63 | ******************************************************************************/ |
64 | acpi_status acpi_initialize_subsystem(void) | 64 | acpi_status __init acpi_initialize_subsystem(void) |
65 | { | 65 | { |
66 | acpi_status status; | 66 | acpi_status status; |
67 | 67 | ||
@@ -108,8 +108,6 @@ acpi_status acpi_initialize_subsystem(void) | |||
108 | return_ACPI_STATUS(status); | 108 | return_ACPI_STATUS(status); |
109 | } | 109 | } |
110 | 110 | ||
111 | ACPI_EXPORT_SYMBOL(acpi_initialize_subsystem) | ||
112 | |||
113 | /******************************************************************************* | 111 | /******************************************************************************* |
114 | * | 112 | * |
115 | * FUNCTION: acpi_enable_subsystem | 113 | * FUNCTION: acpi_enable_subsystem |
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index de26ee13835c..ca882b8e7d10 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -78,7 +78,7 @@ struct acpi_signal_fatal_info { | |||
78 | /* | 78 | /* |
79 | * OSL Initialization and shutdown primitives | 79 | * OSL Initialization and shutdown primitives |
80 | */ | 80 | */ |
81 | acpi_status acpi_os_initialize(void); | 81 | acpi_status __initdata acpi_os_initialize(void); |
82 | 82 | ||
83 | acpi_status acpi_os_terminate(void); | 83 | acpi_status acpi_os_terminate(void); |
84 | 84 | ||
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index e08f7df85a4f..b5cca5daa348 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -55,7 +55,7 @@ acpi_status | |||
55 | acpi_initialize_tables(struct acpi_table_desc *initial_storage, | 55 | acpi_initialize_tables(struct acpi_table_desc *initial_storage, |
56 | u32 initial_table_count, u8 allow_resize); | 56 | u32 initial_table_count, u8 allow_resize); |
57 | 57 | ||
58 | acpi_status acpi_initialize_subsystem(void); | 58 | acpi_status __init acpi_initialize_subsystem(void); |
59 | 59 | ||
60 | acpi_status acpi_enable_subsystem(u32 flags); | 60 | acpi_status acpi_enable_subsystem(u32 flags); |
61 | 61 | ||