aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-07-24 16:54:27 -0400
committerDavid Brown <davidb@codeaurora.org>2013-07-29 14:24:36 -0400
commit0c211c29f2439e42b5c5b20c65dfde6f39aa7bbf (patch)
tree2e6c54ae5a075c24d0ebada65954194d287b2224 /arch
parent425dbc5e72822acd470278b8517f1088357a18bf (diff)
ARM: msm: Don't compile __msm_ioremap_caller() unless used
This function is only used on MSM7x00A so only compile the function if the build includes support for that platform. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-msm/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c
index 3dc04ccaf59f..4a1a222ac778 100644
--- a/arch/arm/mach-msm/io.c
+++ b/arch/arm/mach-msm/io.c
@@ -168,6 +168,7 @@ void __init msm_map_msm7x30_io(void)
168} 168}
169#endif /* CONFIG_ARCH_MSM7X30 */ 169#endif /* CONFIG_ARCH_MSM7X30 */
170 170
171#ifdef CONFIG_ARCH_MSM7X00A
171void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size, 172void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size,
172 unsigned int mtype, void *caller) 173 unsigned int mtype, void *caller)
173{ 174{
@@ -182,3 +183,4 @@ void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size,
182 183
183 return __arm_ioremap_caller(phys_addr, size, mtype, caller); 184 return __arm_ioremap_caller(phys_addr, size, mtype, caller);
184} 185}
186#endif