From c248ed788e4120dab0848fc3f68626374c5e64b7 Mon Sep 17 00:00:00 2001 From: Ranjani Vaidyanathan Date: Wed, 15 Oct 2014 13:34:00 -0500 Subject: MLK-9698 ARM:imx6x: Fix build break when CONFIG_SMP is not defined Ensure that all the code in busfreq driver that is SMP dependent is enclosed with CONFIG_SMP define, else the build breaks when CONFIG_SMP=n. Signed-off-by: Ranjani Vaidyanathan --- arch/arm/mach-mx6/mx6_ddr_freq.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'arch/arm/mach-mx6/mx6_ddr_freq.S') diff --git a/arch/arm/mach-mx6/mx6_ddr_freq.S b/arch/arm/mach-mx6/mx6_ddr_freq.S index 101e270ea370..3afc01ff41f0 100644 --- a/arch/arm/mach-mx6/mx6_ddr_freq.S +++ b/arch/arm/mach-mx6/mx6_ddr_freq.S @@ -23,12 +23,14 @@ #define L2_CACHE_SYNC 0x730 .extern iram_tlb_phys_addr -.extern imx_scu_base .globl mx6_ddr3_iram_start .globl mx6_ddr3_iram_end +#ifdef CONFIG_SMP .globl wfe_ddr3_freq_change_start .globl wfe_ddr3_freq_change_end +.extern imx_scu_base +#endif .macro switch_to_528MHz @@ -1158,6 +1160,7 @@ done: .ltorg mx6_ddr3_iram_end: +#ifdef CONFIG_SMP .align 3 ENTRY(wfe_ddr3_freq_change) @@ -1229,3 +1232,4 @@ go_back_wfe: mov pc, lr .ltorg wfe_ddr3_freq_change_end: +#endif -- cgit v1.2.3