summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Liu <jason.hui@linaro.org>2011-11-03 17:31:27 +0800
committerShawn Guo <shawn.guo@linaro.org>2011-11-04 03:54:18 +0800
commit188d7c6b0cfee134cc7fbc61d36223b1d7dfffab (patch)
tree61794f89c28d043a6af0fdabdde3557de5d37254
parent98de0cbbe2e7157fd87d04386621be3eadd4d6ab (diff)
downloadop-kernel-dev-188d7c6b0cfee134cc7fbc61d36223b1d7dfffab.zip
op-kernel-dev-188d7c6b0cfee134cc7fbc61d36223b1d7dfffab.tar.gz
ARM:i.MX: fix build error in clock-mx51-mx53.c
arch/arm/mach-mx5/clock-mx51-mx53.c: In function 'clk_get_freq_dt': arch/arm/mach-mx5/clock-mx51-mx53.c:1643: error: implicit declaration of function 'for_each_compatible_node' arch/arm/mach-mx5/clock-mx51-mx53.c:1643: error: expected ';' before '{' token Signed-off-by: Jason Liu <jason.hui@linaro.org>
-rw-r--r--arch/arm/mach-mx5/clock-mx51-mx53.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c
index 2aacf41..6312425 100644
--- a/arch/arm/mach-mx5/clock-mx51-mx53.c
+++ b/arch/arm/mach-mx5/clock-mx51-mx53.c
@@ -1634,6 +1634,7 @@ int __init mx53_clocks_init(unsigned long ckil, unsigned long osc,
return 0;
}
+#ifdef CONFIG_OF
static void __init clk_get_freq_dt(unsigned long *ckil, unsigned long *osc,
unsigned long *ckih1, unsigned long *ckih2)
{
@@ -1671,3 +1672,4 @@ int __init mx53_clocks_init_dt(void)
clk_get_freq_dt(&ckil, &osc, &ckih1, &ckih2);
return mx53_clocks_init(ckil, osc, ckih1, ckih2);
}
+#endif
OpenPOWER on IntegriCloud