aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/apbuart.c
diff options
context:
space:
mode:
authorKristoffer Glembo <kristoffer@gaisler.com>2009-11-13 16:25:06 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-13 16:25:06 -0500
commit4edd5ad0f5a7a2238e5df311ce36789bae6751c0 (patch)
treea3c931de2edfe83d08d2a723d54c00e74d6d0f71 /drivers/serial/apbuart.c
parent8a2fe6c76e230a4591373fdf77c09c36bc9c1318 (diff)
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>
Diffstat (limited to 'drivers/serial/apbuart.c')
-rw-r--r--drivers/serial/apbuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/apbuart.c b/drivers/serial/apbuart.c
index a1e95033da5b..fe91319b5f65 100644
--- a/drivers/serial/apbuart.c
+++ b/drivers/serial/apbuart.c
@@ -609,7 +609,7 @@ static void grlib_apbuart_configure(void)
609 return; 609 return;
610 610
611 /* Get bus frequency */ 611 /* Get bus frequency */
612 rp = of_find_node_by_name(NULL, "/"); 612 rp = of_find_node_by_path("/");
613 rp = of_get_next_child(rp, NULL); 613 rp = of_get_next_child(rp, NULL);
614 prop = of_get_property(rp, "clock-frequency", NULL); 614 prop = of_get_property(rp, "clock-frequency", NULL);
615 freq_khz = *prop; 615 freq_khz = *prop;