]> git.ipfire.org Git - people/ms/u-boot.git/commit
dm: core: Add a function to bind child devices
authorSimon Glass <sjg@chromium.org>
Tue, 5 Jul 2016 23:10:08 +0000 (17:10 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 27 Jul 2016 20:14:37 +0000 (14:14 -0600)
commitcc7f66f70cc2c59fe8ebf9011658447815278894
tree3e37506e9935e3ed54095c93b335d598d7eb0162
parent5628347f59e1672f381b8113e85e47529770ab47
dm: core: Add a function to bind child devices

We currently use dm_scan_fdt_node() to bind devices. It is an internal
function and it requires the caller to know whether we are pre- or post-
relocation.

This requirement has become quite common in drivers, so the current function
is not ideal.

Add a new function with fewer arguments, that does not require internal
headers. This can be used directly as a post_bind() method if needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c
include/dm/device.h