]> err.no Git - linux-2.6/blobdiff - arch/i386/kernel/dmi_scan.c
[PATCH] EFI: keep physical table addresses in efi structure
[linux-2.6] / arch / i386 / kernel / dmi_scan.c
index c032f9e06bb61ebb362b144fe30a2de757524c56..170d4c9f9bc339a5b8d1b7fbb907d2e14a5ed5ee 100644 (file)
@@ -217,14 +217,14 @@ void __init dmi_scan_machine(void)
        int rc;
 
        if (efi_enabled) {
-               if (!efi.smbios)
+               if (efi.smbios == EFI_INVALID_TABLE_ADDR)
                        goto out;
 
                /* This is called as a core_initcall() because it isn't
                 * needed during early boot.  This also means we can
                 * iounmap the space when we're done with it.
                */
-               p = dmi_ioremap((unsigned long)efi.smbios, 32);
+               p = dmi_ioremap(efi.smbios, 32);
                if (p == NULL)
                        goto out;