diff options
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index ac5bbaedac1b..fc8a3bce6cbb 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -156,12 +156,10 @@ acpi_status acpi_os_get_root_pointer(u32 flags, struct acpi_pointer *addr) | |||
156 | { | 156 | { |
157 | if (efi_enabled) { | 157 | if (efi_enabled) { |
158 | addr->pointer_type = ACPI_PHYSICAL_POINTER; | 158 | addr->pointer_type = ACPI_PHYSICAL_POINTER; |
159 | if (efi.acpi20) | 159 | if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) |
160 | addr->pointer.physical = | 160 | addr->pointer.physical = efi.acpi20; |
161 | (acpi_physical_address) virt_to_phys(efi.acpi20); | 161 | else if (efi.acpi != EFI_INVALID_TABLE_ADDR) |
162 | else if (efi.acpi) | 162 | addr->pointer.physical = efi.acpi; |
163 | addr->pointer.physical = | ||
164 | (acpi_physical_address) virt_to_phys(efi.acpi); | ||
165 | else { | 163 | else { |
166 | printk(KERN_ERR PREFIX | 164 | printk(KERN_ERR PREFIX |
167 | "System description tables not found\n"); | 165 | "System description tables not found\n"); |