dataflash mmc mux: use common cmd_usage function
authorMike Frysinger <vapier@gentoo.org>
Thu, 29 Jul 2010 17:42:10 +0000 (13:42 -0400)
committerWolfgang Denk <wd@denx.de>
Sun, 8 Aug 2010 22:32:26 +0000 (00:32 +0200)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/cmd_dataflash_mmc_mux.c

index de4e676..fc23ed6 100644 (file)
@@ -41,8 +41,7 @@ int do_dataflash_mmc_mux (cmd_tbl_t *cmdtp, int flag, int argc, char * const arg
                        AT91F_GetMuxStatus () ? "MMC" : "SPI");
                return 0;
        default:
-               printf ("Usage:\n%s\n", cmdtp->usage);
-               return 1;
+               return cmd_usage(cmdtp);
        }
        return 0;
 }