Commit 4edd5ad0 authored by Kristoffer Glembo's avatar Kristoffer Glembo Committed by David S. Miller

apbuart: Use of_find_node_by_path to find root node.

Signed-off-by: default avatarKristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment