Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

apbuart: Use of_find_node_by_path to find root node.

parent 8a2fe6c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;