diff options
-rw-r--r-- | drivers/acpi/osl.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index d47df72990dd..9a4c6abee63e 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -188,6 +188,8 @@ early_param("acpi_rsdp", setup_acpi_rsdp); | |||
188 | 188 | ||
189 | acpi_physical_address __init acpi_os_get_root_pointer(void) | 189 | acpi_physical_address __init acpi_os_get_root_pointer(void) |
190 | { | 190 | { |
191 | acpi_physical_address pa = 0; | ||
192 | |||
191 | #ifdef CONFIG_KEXEC | 193 | #ifdef CONFIG_KEXEC |
192 | if (acpi_rsdp) | 194 | if (acpi_rsdp) |
193 | return acpi_rsdp; | 195 | return acpi_rsdp; |
@@ -196,21 +198,14 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) | |||
196 | if (efi_enabled(EFI_CONFIG_TABLES)) { | 198 | if (efi_enabled(EFI_CONFIG_TABLES)) { |
197 | if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) | 199 | if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) |
198 | return efi.acpi20; | 200 | return efi.acpi20; |
199 | else if (efi.acpi != EFI_INVALID_TABLE_ADDR) | 201 | if (efi.acpi != EFI_INVALID_TABLE_ADDR) |
200 | return efi.acpi; | 202 | return efi.acpi; |
201 | else { | 203 | pr_err(PREFIX "System description tables not found\n"); |
202 | printk(KERN_ERR PREFIX | ||
203 | "System description tables not found\n"); | ||
204 | return 0; | ||
205 | } | ||
206 | } else if (IS_ENABLED(CONFIG_ACPI_LEGACY_TABLES_LOOKUP)) { | 204 | } else if (IS_ENABLED(CONFIG_ACPI_LEGACY_TABLES_LOOKUP)) { |
207 | acpi_physical_address pa = 0; | ||
208 | |||
209 | acpi_find_root_pointer(&pa); | 205 | acpi_find_root_pointer(&pa); |
210 | return pa; | ||
211 | } | 206 | } |
212 | 207 | ||
213 | return 0; | 208 | return pa; |
214 | } | 209 | } |
215 | 210 | ||
216 | /* Must be called with 'acpi_ioremap_lock' or RCU read lock held. */ | 211 | /* Must be called with 'acpi_ioremap_lock' or RCU read lock held. */ |