提交 6cec9082 编写于 作者: S Sachin Kamat 提交者: Kukjin Kim

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: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 17d4cacc
...@@ -284,6 +284,7 @@ void __init samsung_clk_register_gate(struct samsung_gate_clock *list, ...@@ -284,6 +284,7 @@ void __init samsung_clk_register_gate(struct samsung_gate_clock *list,
* obtain the clock speed of all external fixed clock sources from device * obtain the clock speed of all external fixed clock sources from device
* tree and register it * tree and register it
*/ */
#ifdef CONFIG_OF
void __init samsung_clk_of_register_fixed_ext( void __init samsung_clk_of_register_fixed_ext(
struct samsung_fixed_rate_clock *fixed_rate_clk, struct samsung_fixed_rate_clock *fixed_rate_clk,
unsigned int nr_fixed_rate_clk, unsigned int nr_fixed_rate_clk,
...@@ -300,6 +301,7 @@ void __init samsung_clk_of_register_fixed_ext( ...@@ -300,6 +301,7 @@ void __init samsung_clk_of_register_fixed_ext(
} }
samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk); samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk);
} }
#endif
/* utility function to get the rate of a specified clock */ /* utility function to get the rate of a specified clock */
unsigned long _get_rate(const char *clk_name) unsigned long _get_rate(const char *clk_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册