OF: base: fix iterator in of_get_next_available_child
of_get_next_available_child does not iterate but always tries the
same node over and over again. This first prepares the entry and
then uses list_for_each_entry_continue, instead of for_each_child_of_node
before.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 73986cc commit f457f683cb5482e8687c55689864e80ca49e372c
@Sebastian Hesselbarth Sebastian Hesselbarth authored on 3 Jul 2013
Sascha Hauer committed on 5 Jul 2013
Showing 1 changed file
View
drivers/of/base.c