]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpc5xxx: Use of_get_next_parent to simplify code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 11 Oct 2015 20:27:40 +0000 (22:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Oct 2015 09:32:01 +0000 (20:32 +1100)
commit79d0ea56e173c226b4e18ebbfbad616b0e237dbe
tree68d481a8fed7f94cae6ca442ab8b97536f5b037c
parentd8a09ea8d31e429f3f5521224b3dcd23b2728fa1
powerpc/mpc5xxx: Use of_get_next_parent to simplify code

of_get_next_parent can be used to simplify the while() loop and
avoid the need of a temp variable.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/mpc5xxx_clocks.c