Skip to contentSkip to conversation

mach-s3c2410/cpu-freq.c: fix build

PATCH New Arnaud Patard (Rtp) 1 participant 1 message Mar 8, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mach-s3c2410/cpu-freq.c: fix build

When CPU_FREQ_S3C24XX_DEBUGFS is set and S3C2410_IOTIMING, I'm getting :

arch/arm/mach-s3c2410/built-in.o:(.data+0x218): undefined reference to `s3c2410_iotiming_debugfs'

This patch add missing #ifdef

---

arch/arm/mach-s3c2410/cpu-freq.c | 2 2 + 0 - 0 !

 1 file changed, 2 insertions(+)
arch/arm/mach-s3c2410/cpu-freq.c +2 -0
Index: linux-2.6/arch/arm/mach-s3c2410/cpu-freq.c
===================================================================
@@ -112,7 +112,9 @@ static struct s3c_cpufreq_info s3c2410_c
 	.set_divs	= s3c2410_cpufreq_setdivs,
 	.calc_divs	= s3c2410_cpufreq_calcdivs,
 
+#ifdef CONFIG_S3C2410_IOTIMING
 	.debug_io_show	= s3c_cpufreq_debugfs_call(s3c2410_iotiming_debugfs),
+#endif
 };
 
 static int s3c2410_cpufreq_add(struct sys_device *sysdev)