summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>2012-06-03 23:46:04 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>2012-06-03 23:46:04 +0200
commite034ea3b77baf90ab8dde2c1beeb22704b01fb2d (patch)
treedda320bfb851444dce71331cacb3b463249519f3
parented53010441c1aa29b127aecf57b1d83d23e63f8d (diff)
downloadu-boot-e034ea3b77baf90ab8dde2c1beeb22704b01fb2d.tar.gz
u-boot-e034ea3b77baf90ab8dde2c1beeb22704b01fb2d.tar.bz2
u-boot-e034ea3b77baf90ab8dde2c1beeb22704b01fb2d.zip
MIPS: board.c: move extern declarations to u-boot-mips.h
This fixes some remaining checkpatch.pl warnings. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-rw-r--r--arch/mips/include/asm/u-boot-mips.h11
-rw-r--r--arch/mips/lib/board.c7
-rw-r--r--include/common.h3
3 files changed, 14 insertions, 7 deletions
diff --git a/arch/mips/include/asm/u-boot-mips.h b/arch/mips/include/asm/u-boot-mips.h
new file mode 100644
index 0000000000..6f26dfac56
--- /dev/null
+++ b/arch/mips/include/asm/u-boot-mips.h
@@ -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);
diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c
index 59a80011da..62d47a8bf0 100644
--- a/arch/mips/lib/board.c
+++ b/arch/mips/lib/board.c
@@ -38,13 +38,6 @@
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";
diff --git a/include/common.h b/include/common.h
index 8564a65cfd..ecfa6c429f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -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);