dm: core: Add device_foreach_child()
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:56 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:39 +0000 (13:57 +0800)
commite5f739045890eef2e97488c9c2a7d036ab908e58
treea35da1bad47f5795ad8a66b644e0de06f6ba7618
parent4805a7af8ebd4c604e1e32355927ec5035685121
dm: core: Add device_foreach_child()

We have a 'safe' version of this function but sometimes it is not needed.
Add a normal version too and update a few places that can use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/arm/mach-uniphier/pinctrl-glue.c
drivers/block/blk-uclass.c
include/dm/device.h