From 19c8205e6887d5e47c7dac6cd85d0376411b5444 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 18 May 2017 20:09:08 -0600 Subject: 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 --- include/dm/root.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/dm/root.h') diff --git a/include/dm/root.h b/include/dm/root.h index 186cf8ba1c9..50a6011644f 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 -- cgit v1.2.3