]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MIPS: board.c: move extern declarations to u-boot-mips.h
authorDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Sun, 3 Jun 2012 21:46:04 +0000 (23:46 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Sun, 3 Jun 2012 21:46:04 +0000 (23:46 +0200)
This fixes some remaining checkpatch.pl warnings.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
arch/mips/include/asm/u-boot-mips.h [new file with mode: 0644]
arch/mips/lib/board.c
include/common.h

diff --git a/arch/mips/include/asm/u-boot-mips.h b/arch/mips/include/asm/u-boot-mips.h
new file mode 100644 (file)
index 0000000..6f26dfa
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * This file is released under the terms of GPL v2 and any later version.
+ * See the file COPYING in the root directory of the source tree for details.
+ *
+ * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de
+ */
+
+extern ulong uboot_end_data;
+extern ulong uboot_end;
+
+extern int incaip_set_cpuclk(void);
index 59a80011da1be8d1a632a0d019c3b074b9e91bf8..62d47a8bf0bb7e79d3b558729bc485a4466b41e2 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern int timer_init(void);
-
-extern int incaip_set_cpuclk(void);
-
-extern ulong uboot_end_data;
-extern ulong uboot_end;
-
 ulong monitor_flash_len;
 
 static char *failed = "*** failed ***\n";
index 8564a65cfdd70859fa11e78150be6c361ad23d81..ecfa6c429fa3615c23ca711f17f29af8e47433b6 100644 (file)
@@ -355,6 +355,9 @@ int setenv_addr(const char *varname, const void *addr);
 # include <asm/mach-types.h>
 # include <asm/u-boot-nds32.h>
 #endif /* CONFIG_NDS32 */
+#ifdef CONFIG_MIPS
+# include <asm/u-boot-mips.h>
+#endif /* CONFIG_MIPS */
 
 #ifdef CONFIG_AUTO_COMPLETE
 int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);