[PATCH 3/6] clk: at91: fix clk-main
Sam Ravnborg
sam at ravnborg.org
Wed Jul 19 14:21:01 PDT 2017
Following warning was reported during boot with
at91sam9263ek with DT enabled.
"Main crystal frequency not set, using approximate value"
This occured due to a missing parent in clk_rm9200_main.
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
Cc: Andrey Smirnov <andrew.smirnov at gmail.com>
---
drivers/clk/at91/clk-main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c
index 55bc618a3..77dfdef51 100644
--- a/drivers/clk/at91/clk-main.c
+++ b/drivers/clk/at91/clk-main.c
@@ -391,6 +391,7 @@ at91_clk_register_rm9200_main(struct regmap *regmap,
clkmain = xzalloc(sizeof(*clkmain));
+ clkmain->parent = parent_name;
clkmain->clk.name = name;
clkmain->clk.ops = &rm9200_main_ops;
clkmain->clk.parent_names = &clkmain->parent;
--
2.12.0
More information about the barebox
mailing list