[PATCH] dm: core: Use device_foreach_child where possible