From: Patrick Delaunay Date: Tue, 13 Mar 2018 12:57:04 +0000 (+0100) Subject: common: move init_helpers.h prototypes in init.h X-Git-Tag: v2018.05-rc1~65 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b8aa55cb6414e512cce30bb7db3268eea934466d;p=oweals%2Fu-boot.git common: move init_helpers.h prototypes in init.h Merge init_helpers.h in the new file init.h with only prototypes for init_cache_f_r used in common/board_f.c Signed-off-by: Patrick Delaunay --- diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 832a5d7c0e..7c32245a09 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/common/board_f.c b/common/board_f.c index 4df52f1eb5..62588c5bad 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/common/board_r.c b/common/board_r.c index 482f506661..89f2e16b71 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -23,7 +23,6 @@ #include #include #include -#include #ifdef CONFIG_PS2KBD #include #endif diff --git a/include/init.h b/include/init.h index d54d519a69..147ae6bb8e 100644 --- a/include/init.h +++ b/include/init.h @@ -101,6 +101,13 @@ int dram_init_banksize(void); */ int arch_reserve_stacks(void); +/** + * init_cache_f_r() - Turn on the cache in preparation for relocation + * + * @return 0 if OK, -ve on error + */ +int init_cache_f_r(void); + int print_cpuinfo(void); int timer_init(void); int reserve_mmu(void); diff --git a/include/init_helpers.h b/include/init_helpers.h deleted file mode 100644 index 3efcfddb7b..0000000000 --- a/include/init_helpers.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * (C) Copyright 2011 - * Graeme Russ, - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef _INIT_HELPERS_H_ -#define _INIT_HELPERS_H_ - -/** - * init_cache_f_r() - Turn on the cache in preparation for relocation - * - * @return 0 if OK, -ve on error - */ -int init_cache_f_r(void); - -#endif /* _INIT_HELPERS_H_ */