From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 9 Dec 2020 16:26:35 -0800 Subject: [PATCH 09/11] dm: core: Combine the flattree and livetree binding code In-Reply-To: <20201128174958.9.Ia1e9e05434447b46189fa7d729820c68dde511e0@changeid> References: <20201128174958.9.Ia1e9e05434447b46189fa7d729820c68dde511e0@changeid> <20201129005011.2104545-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de At present there are two copies of this code. With ofnode we can combine them to reduce duplication. Update the dm_scan_fdt_node() function and adjust its callers. Signed-off-by: Simon Glass --- drivers/core/root.c | 74 ++++++++++----------------------------------- 1 file changed, 16 insertions(+), 58 deletions(-) Applied to u-boot-dm, thanks!