summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2010-12-03 10:28:47 -0600
committerWolfgang Denk <wd@denx.de>2010-12-17 20:26:19 +0100
commitc22a711d249b2b9ee39fe11bcee15ee4dbe3bf09 (patch)
tree17ae77b8593127b54cd3762cf80a2f11ef9e4154 /board
parentee0270dff748213bd009fad566c913110fbd89f9 (diff)
downloadu-boot-imx-c22a711d249b2b9ee39fe11bcee15ee4dbe3bf09.zip
u-boot-imx-c22a711d249b2b9ee39fe11bcee15ee4dbe3bf09.tar.gz
u-boot-imx-c22a711d249b2b9ee39fe11bcee15ee4dbe3bf09.tar.bz2
74xx_7xx/mpc86xx/ppmc7xx: Fix do_reset() declaration
The following commit: commit 882b7d726febe65579d6502c271412ecb05821d7 Author: Mike Frysinger <vapier@gentoo.org> Date: Wed Oct 20 03:41:17 2010 -0400 do_reset: unify duplicate prototypes missed the 74xx_7xx and mpc86xx arches and the ppmc7xx board do_reset() functions which resulted in build errors such as: cpu.c:128: error: conflicting types for 'do_reset' include/command.h:102: error: previous declaration of 'do_reset' was here Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'board')
-rw-r--r--board/ppmc7xx/ppmc7xx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/ppmc7xx/ppmc7xx.c b/board/ppmc7xx/ppmc7xx.c
index 5e7427f..432d366 100644
--- a/board/ppmc7xx/ppmc7xx.c
+++ b/board/ppmc7xx/ppmc7xx.c
@@ -88,7 +88,7 @@ int misc_init_r( void )
*
* Shell command to reset the board.
*/
-void do_reset( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[] )
+int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
printf( "Resetting...\n" );
@@ -100,7 +100,10 @@ void do_reset( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[] )
_start();
/* Should never get here */
- while(1);
+ while(1)
+ ;
+
+ return 1;
}
int board_eth_init(bd_t *bis)