Skip to content

Commit

Permalink
apbuart: Use of_find_node_by_path to find root node.
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kristoffer Glembo authored and David S. Miller committed Nov 13, 2009
1 parent 8a2fe6c commit 4edd5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/apbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4edd5ad

Please sign in to comment.