]> git.sur5r.net Git - u-boot/commitdiff
Fix bug in 8641hpcn reset command with no args.
authorJon Loeliger <jdl@freescale.com>
Thu, 22 Jun 2006 13:51:46 +0000 (08:51 -0500)
committerJon Loeliger <jdl@freescale.com>
Thu, 22 Jun 2006 13:51:46 +0000 (08:51 -0500)
Signed-off-by: Haiying Wang <haiying.wang@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
board/mpc8641hpcn/mpc8641hpcn.c

index c6b2a5b3bf9dd85d514b637ef54894bff3a8b96d..2626cccb93c4238235d6a4a3419b0f61f0096efe 100644 (file)
@@ -269,7 +269,7 @@ mpc8641_reset_board(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        /*
         * No args is a simple reset request.
         */
-       if (argv <= 0) {
+       if (argc <= 1) {
                out8(PIXIS_BASE + PIXIS_RST, 0);
                /* not reached */
        }