]> git.sur5r.net Git - u-boot/commitdiff
pixis do not print long help if not configured
authorEd Swarthout <Ed.Swarthout@freescale.com>
Thu, 9 Oct 2008 04:38:01 +0000 (23:38 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:05 +0000 (21:54 +0200)
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
board/freescale/common/pixis.c

index 348696ee174ef254680fbbfa34f7aa4b3b3011b0..de3a18219ad6f62fcb082b612d181177140d2b88 100644 (file)
@@ -453,7 +453,9 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
         */
        if ((p_cf && !(p_cf_sysclk && p_cf_corepll && p_cf_mpxpll))
            ||  unknown_param) {
+#ifdef CONFIG_SYS_LONGHELP
                puts(cmdtp->help);
+#endif
                return 1;
        }
 
@@ -483,7 +485,9 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                if (!(set_px_sysclk(sysclk)
                      && set_px_corepll(corepll)
                      && set_px_mpxpll(mpxpll))) {
+#ifdef CONFIG_SYS_LONGHELP
                        puts(cmdtp->help);
+#endif
                        return 1;
                }
                read_from_px_regs(1);