dm: core: Scan the live tree when setting up driver model

When starting up driver model with a live tree we need to scan the tree
for devices. Add code to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2017-05-18 20:09:08 -06:00
parent 45a26867e8
commit 19c8205e68
3 changed files with 58 additions and 7 deletions

View File

@@ -87,9 +87,10 @@ int dm_init_and_scan(bool pre_reloc_only);
* This function will initialize roots of driver tree and class tree.
* This needs to be called before anything uses the DM
*
* @of_live: Enable live device tree
* @return 0 if OK, -ve on error
*/
int dm_init(void);
int dm_init(bool of_live);
/**
* dm_uninit - Uninitialise Driver Model structures