[U-Boot] [PATCH v2] dataflash mmc mux: use common cmd_usage function

Mike Frysinger vapier at gentoo.org
Thu Jul 29 19:42:10 CEST 2010


Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
v2
	- tail into cmd_usage() as pointed out by Detlev Zundel

 common/cmd_dataflash_mmc_mux.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/common/cmd_dataflash_mmc_mux.c b/common/cmd_dataflash_mmc_mux.c
index de4e676..fc23ed6 100644
--- a/common/cmd_dataflash_mmc_mux.c
+++ b/common/cmd_dataflash_mmc_mux.c
@@ -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;
 }
-- 
1.7.2



More information about the U-Boot mailing list