aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/dmi_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/dmi_scan.c')
-rw-r--r--arch/i386/kernel/dmi_scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/dmi_scan.c b/arch/i386/kernel/dmi_scan.c
index c032f9e06bb6..170d4c9f9bc3 100644
--- a/arch/i386/kernel/dmi_scan.c
+++ b/arch/i386/kernel/dmi_scan.c
@@ -217,14 +217,14 @@ void __init dmi_scan_machine(void)
217 int rc; 217 int rc;
218 218
219 if (efi_enabled) { 219 if (efi_enabled) {
220 if (!efi.smbios) 220 if (efi.smbios == EFI_INVALID_TABLE_ADDR)
221 goto out; 221 goto out;
222 222
223 /* This is called as a core_initcall() because it isn't 223 /* This is called as a core_initcall() because it isn't
224 * needed during early boot. This also means we can 224 * needed during early boot. This also means we can
225 * iounmap the space when we're done with it. 225 * iounmap the space when we're done with it.
226 */ 226 */
227 p = dmi_ioremap((unsigned long)efi.smbios, 32); 227 p = dmi_ioremap(efi.smbios, 32);
228 if (p == NULL) 228 if (p == NULL)
229 goto out; 229 goto out;
230 230