summaryrefslogtreecommitdiff
path: root/include/dm/root.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-18 20:09:08 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:08 -0600
commit19c8205e6887d5e47c7dac6cd85d0376411b5444 (patch)
tree88f5788dbe0ad8ef62df010d636b615ee1ec9dfe /include/dm/root.h
parent45a26867e8158d0338ba5b99d21989a72d423209 (diff)
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>
Diffstat (limited to 'include/dm/root.h')
-rw-r--r--include/dm/root.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dm/root.h b/include/dm/root.h
index 186cf8ba1c..50a6011644 100644
--- a/include/dm/root.h
+++ b/include/dm/root.h
@@ -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