summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-02-27 22:06:35 -0700
committerSimon Glass <sjg@chromium.org>2015-04-23 09:05:53 -0600
commit0879361fd3bc33eb52bcfb2574a78f1e52a36429 (patch)
tree4b23d3c50eaee147f346fe59b34de9e313680603 /lib
parentb45122fdf5d314ef1f492b051fb104a7b48b8079 (diff)
fdt: Rename setup_fdt() and make it prepare also
There is little reason to split these two functions. Bring them together which simplifies the init sequence. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index d9dbc86164..80b897a21c 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1039,7 +1039,7 @@ int fdtdec_decode_memory_region(const void *blob, int config_node,
return 0;
}
-int setup_fdt(void)
+int fdtdec_setup(void)
{
#ifdef CONFIG_OF_CONTROL
# ifdef CONFIG_OF_EMBED
@@ -1065,7 +1065,7 @@ int setup_fdt(void)
(uintptr_t)gd->fdt_blob);
# endif
#endif
- return 0;
+ return fdtdec_prepare_fdt();
}
#endif /* !USE_HOSTCC */