dm: core: Combine the flattree and livetree binding code
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2020 00:50:08 +0000 (17:50 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 13 Dec 2020 14:58:18 +0000 (07:58 -0700)
commit2ebea5eaebf2c11c3f18f553d1bceba22e220893
treec60a87976dd3810643ed2e5c0c26be68ac4c38f7
parentd0c20ce6bcb9af3d70ed6ada618607ca1099e811
dm: core: Combine the flattree and livetree binding code

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 <sjg@chromium.org>
drivers/core/root.c