apbuart: Use of_find_node_by_path to find root node.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Kristoffer Glembo 2009-11-13 13:25:06 -08:00 committed by David S. Miller
parent 8a2fe6c76e
commit 4edd5ad0f5

View file

@ -609,7 +609,7 @@ static void grlib_apbuart_configure(void)
return; return;
/* Get bus frequency */ /* Get bus frequency */
rp = of_find_node_by_name(NULL, "/"); rp = of_find_node_by_path("/");
rp = of_get_next_child(rp, NULL); rp = of_get_next_child(rp, NULL);
prop = of_get_property(rp, "clock-frequency", NULL); prop = of_get_property(rp, "clock-frequency", NULL);
freq_khz = *prop; freq_khz = *prop;