提交 4edd5ad0 编写于 作者: K Kristoffer Glembo 提交者: David S. Miller

apbuart: Use of_find_node_by_path to find root node.

Signed-off-by: NKristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8a2fe6c7
......@@ -609,7 +609,7 @@ static void grlib_apbuart_configure(void)
return;
/* Get bus frequency */
rp = of_find_node_by_name(NULL, "/");
rp = of_find_node_by_path("/");
rp = of_get_next_child(rp, NULL);
prop = of_get_property(rp, "clock-frequency", NULL);
freq_khz = *prop;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册