]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
74xx_7xx/mpc86xx/ppmc7xx: Fix do_reset() declaration
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 3 Dec 2010 16:28:47 +0000 (10:28 -0600)
committerWolfgang Denk <wd@denx.de>
Fri, 17 Dec 2010 19:26:19 +0000 (20:26 +0100)
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>
arch/powerpc/cpu/74xx_7xx/cpu.c
arch/powerpc/cpu/mpc86xx/cpu.c
board/ppmc7xx/ppmc7xx.c

index ab6f11dadebae4b7817356f07a25d29814ecef00..b6a31b4372f2e77dfbdd1ff744699b5f3b3eb46a 100644 (file)
@@ -234,8 +234,7 @@ soft_restart(unsigned long addr)
     !defined(CONFIG_ELPPC)   && \
     !defined(CONFIG_PPMC7XX)
 /* no generic way to do board reset. simply call soft_reset. */
-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[])
 {
        ulong addr;
        /* flush and disable I/D cache */
@@ -263,7 +262,12 @@ do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        soft_restart(addr);
-       while(1);       /* not reached */
+
+       /* not reached */
+       while(1)
+               ;
+
+       return 1;
 }
 #endif
 
index 4e90fd2203725e2c1bb60ce96ae209dd0fd0bbb0..ffcc8e621201700bf5dd5abc2d8bf8a25f4b2766 100644 (file)
@@ -123,8 +123,7 @@ checkcpu(void)
 }
 
 
-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[])
 {
        volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
@@ -137,6 +136,8 @@ do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        while (1)
                ;
+
+       return 1;
 }
 
 
index 5e7427f370f02f45bbf280a12927f6c719612e8b..432d366a40fad529aeab58ceb2cfad045d04bd18 100644 (file)
@@ -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)