From: Leonid Yegoshin Date: Thu, 9 Jan 2014 13:06:34 +0000 (+0000) Subject: MIPS: asm: page: Allow __pa_symbol overrides X-Git-Tag: v4.14-rc1~7797^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27b3db2031d3c293fd19ff99a6bd0752384db56f;p=platform%2Fkernel%2Flinux-rpi.git MIPS: asm: page: Allow __pa_symbol overrides This will allow platforms to use an alternative way to get the physical address of a symbol. Signed-off-by: Leonid Yegoshin Signed-off-by: Markos Chandras --- diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 5e08bcc7..5699ec3 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -190,7 +190,9 @@ typedef struct { unsigned long pgprot; } pgprot_t; * https://patchwork.linux-mips.org/patch/1541/ */ +#ifndef __pa_symbol #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) +#endif #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)