]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_df.c
OMAP3: fix DRAM size for IGEP-based boards.
[karo-tx-uboot.git] / common / cmd_df.c
index 5f650442c018edb81aacc6c22ddbe0f49682087f..f7e5df3e2decc812341b21692fb9333fb7824ca8 100644 (file)
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <df.h>
 
-static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        const char *cmd;
 
@@ -27,11 +27,10 @@ static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
 usage:
-       printf("Usage:\n%s\n", cmdtp->usage);
-       return 1;
+       return CMD_RET_USAGE;
 }
 
 U_BOOT_CMD(
        sf,     2,      1,      do_serial_flash,
-       "sf     - Serial flash sub-system\n",
-       "probe [bus:]cs         - init flash device on given SPI bus and CS\n")
+       "Serial flash sub-system",
+       "probe [bus:]cs         - init flash device on given SPI bus and CS")