]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/cmd_fpga.c
hush: Fix bogus free() call
[karo-tx-uboot.git] / common / cmd_fpga.c
index dcbbc993dd271ff8b17d535abb5bbbbf47be0152..2e017b84d892d73df80203dfd26d224f62b45050 100644 (file)
@@ -320,7 +320,7 @@ int do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
 static void fpga_usage (cmd_tbl_t * cmdtp)
 {
-       printf ("Usage:\n%s\n", cmdtp->usage);
+       cmd_usage(cmdtp);
 }
 
 /*
@@ -350,16 +350,17 @@ static int fpga_get_op (char *opstr)
 }
 
 U_BOOT_CMD (fpga, 6, 1, do_fpga,
-           "fpga    - loadable FPGA image support\n",
+           "loadable FPGA image support",
            "fpga [operation type] [device number] [image address] [image size]\n"
            "fpga operations:\n"
            "\tinfo\tlist known device information\n"
            "\tload\tLoad device from memory buffer\n"
            "\tloadb\tLoad device from bitstream buffer (Xilinx devices only)\n"
            "\tloadmk\tLoad device generated with mkimage\n"
-           "\tdump\tLoad device to memory buffer\n"
+           "\tdump\tLoad device to memory buffer"
 #if defined(CONFIG_FIT)
+           "\n"
            "\tFor loadmk operating on FIT format uImage address must include\n"
-           "\tsubimage unit name in the form of addr:<subimg_uname>\n"
+           "\tsubimage unit name in the form of addr:<subimg_uname>"
 #endif
 );