Change header to support dmi driver on multi archs, it depends on [DMI: Enhance for multi archs] patch.
Signed-off-by: Yi Li yi.li@linaro.org --- arch/x86/include/asm/dmi.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/dmi.h b/arch/x86/include/asm/dmi.h index fd8f9e2..7790d52 100644 --- a/arch/x86/include/asm/dmi.h +++ b/arch/x86/include/asm/dmi.h @@ -12,8 +12,12 @@ static __always_inline __init void *dmi_alloc(unsigned len) return extend_brk(len, sizeof(int)); }
+#define DMI_SCAN_MACHINE_NON_EFI_FALLBACK 1 + /* Use early IO mappings for DMI because it's initialized early */ -#define dmi_ioremap early_ioremap -#define dmi_iounmap early_iounmap +#define dmi_early_remap early_ioremap +#define dmi_early_unmap early_iounmap +#define dmi_remap ioremap +#define dmi_unmap(x, l) iounmap(x)
#endif /* _ASM_X86_DMI_H */