From: Simon Glass Date: Sat, 28 Feb 2015 05:06:35 +0000 (-0700) Subject: fdt: Rename setup_fdt() and make it prepare also X-Git-Tag: KARO-TX6-2015-09-18~2450 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=77b3716f12607d16b9f5fcd84b0ab1ed48897c37;p=karo-tx-uboot.git 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 --- diff --git a/common/board_f.c b/common/board_f.c index 290fd6507f..aee429fcf6 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -770,7 +770,7 @@ static init_fnc_t init_sequence_f[] = { #endif setup_mon_len, #ifdef CONFIG_OF_CONTROL - setup_fdt, + fdtdec_setup, #endif #ifdef CONFIG_TRACE trace_early_init, @@ -782,9 +782,6 @@ static init_fnc_t init_sequence_f[] = { #endif arch_cpu_init, /* basic arch cpu dependent setup */ mark_bootstage, -#ifdef CONFIG_OF_CONTROL - fdtdec_check_fdt, -#endif initf_dm, arch_cpu_init_dm, #if defined(CONFIG_BOARD_EARLY_INIT_F) diff --git a/include/fdtdec.h b/include/fdtdec.h index ea8a52602a..0d3e6d9711 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -797,6 +797,6 @@ int fdtdec_decode_memory_region(const void *blob, int node, /** * Set up the device tree ready for use */ -int setup_fdt(void); +int fdtdec_setup(void); #endif 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 */