cmd: mtd: fix compiler error

Change-Id: Idc4bcd902c02b5dbd6f5aac631f3977f257f606f
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin 2019-08-06 21:06:50 +08:00
parent b99d850cbd
commit c4d5fc6337
1 changed files with 5 additions and 8 deletions

View File

@ -8,10 +8,8 @@
* Author: Miquèl Raynal <miquel.raynal@bootlin.com>
*/
#include <command.h>
#include <common.h>
#include <console.h>
#include <malloc.h>
#include <command.h>
#include <mapmem.h>
#include <mtd.h>
@ -444,8 +442,9 @@ static int do_mtd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return CMD_RET_SUCCESS;
}
static char mtd_help_text[] =
#ifdef CONFIG_SYS_LONGHELP
U_BOOT_CMD(
mtd, 10, 1, do_mtd,
"MTD utils",
"- generic operations on memory technology devices\n\n"
"mtd list\n"
"mtd read[.raw][.oob] <name> <addr> [<off> [<size>]]\n"
@ -467,7 +466,5 @@ static char mtd_help_text[] =
"\t\t* must be a multiple of a page otherwise (special case: default is a page with dump)\n"
"\n"
"The .dontskipff option forces writing empty pages, don't use it if unsure.\n"
#endif
"";
);
U_BOOT_CMD(mtd, 10, 1, do_mtd, "MTD utils", mtd_help_text);