MIPS: asm: page: Allow __pa_symbol overrides
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Thu, 9 Jan 2014 13:06:34 +0000 (13:06 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:18 +0000 (23:09 +0100)
This will allow platforms to use an alternative way to get
the physical address of a symbol.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/include/asm/page.h

index 5e08bcc74897ab35c377c2d3b4cca9e7a9829824..5699ec3a71af3b42c6afb98b33a87ceceb58c175 100644 (file)
@@ -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)