aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-04-08 08:35:25 -0400
committerKukjin Kim <kgene.kim@samsung.com>2013-04-08 10:43:12 -0400
commit6cec90826e9a3e505c9df91a62de59078f521dd3 (patch)
treed7f121114b795db01d5a64a30cdc98ee20e75be1
parent17d4caccefd138c3e4970132c1db177024caf3c6 (diff)
clk: samsung: Fix compilation error
Fixes the below compilation error during non-dt build. drivers/clk/samsung/clk.c: In function 'samsung_clk_of_register_fixed_ext': drivers/clk/samsung/clk.c:252:2: error: implicit declaration of function 'for_each_matching_node_and_match' [-Werror=implicit-function-declaration] drivers/clk/samsung/clk.c:252:60: error: expected ';' before '{' token Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--drivers/clk/samsung/clk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
index 3a50d4fe0be9..cd3c40ab50f3 100644
--- a/drivers/clk/samsung/clk.c
+++ b/drivers/clk/samsung/clk.c
@@ -284,6 +284,7 @@ void __init samsung_clk_register_gate(struct samsung_gate_clock *list,
284 * obtain the clock speed of all external fixed clock sources from device 284 * obtain the clock speed of all external fixed clock sources from device
285 * tree and register it 285 * tree and register it
286 */ 286 */
287#ifdef CONFIG_OF
287void __init samsung_clk_of_register_fixed_ext( 288void __init samsung_clk_of_register_fixed_ext(
288 struct samsung_fixed_rate_clock *fixed_rate_clk, 289 struct samsung_fixed_rate_clock *fixed_rate_clk,
289 unsigned int nr_fixed_rate_clk, 290 unsigned int nr_fixed_rate_clk,
@@ -300,6 +301,7 @@ void __init samsung_clk_of_register_fixed_ext(
300 } 301 }
301 samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk); 302 samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk);
302} 303}
304#endif
303 305
304/* utility function to get the rate of a specified clock */ 306/* utility function to get the rate of a specified clock */
305unsigned long _get_rate(const char *clk_name) 307unsigned long _get_rate(const char *clk_name)