efi: x86: make efi_lookup_mapped_addr() a common function
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 5 Sep 2013 10:34:55 +0000 (11:34 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 5 Sep 2013 12:29:29 +0000 (13:29 +0100)
commit258f6fd738221766b512cd8c7120563b78d62829
treef2796181d313ef0cb9f0d516fd6a63e910d8b9a7
parent272686bf46a34f86d270cf192f68769667792026
efi: x86: make efi_lookup_mapped_addr() a common function

efi_lookup_mapped_addr() is a handy utility for other platforms than
x86. Move it from arch/x86 to drivers/firmware. Add memmap pointer
to global efi structure, and initialise it on x86.

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi.c
include/linux/efi.h