cmd: mtd: fix compiler error
Change-Id: Idc4bcd902c02b5dbd6f5aac631f3977f257f606f Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
parent
b99d850cbd
commit
c4d5fc6337
13
cmd/mtd.c
13
cmd/mtd.c
|
|
@ -8,10 +8,8 @@
|
||||||
* Author: Miquèl Raynal <miquel.raynal@bootlin.com>
|
* Author: Miquèl Raynal <miquel.raynal@bootlin.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <command.h>
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <console.h>
|
#include <command.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <mapmem.h>
|
#include <mapmem.h>
|
||||||
#include <mtd.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;
|
return CMD_RET_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char mtd_help_text[] =
|
U_BOOT_CMD(
|
||||||
#ifdef CONFIG_SYS_LONGHELP
|
mtd, 10, 1, do_mtd,
|
||||||
|
"MTD utils",
|
||||||
"- generic operations on memory technology devices\n\n"
|
"- generic operations on memory technology devices\n\n"
|
||||||
"mtd list\n"
|
"mtd list\n"
|
||||||
"mtd read[.raw][.oob] <name> <addr> [<off> [<size>]]\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"
|
"\t\t* must be a multiple of a page otherwise (special case: default is a page with dump)\n"
|
||||||
"\n"
|
"\n"
|
||||||
"The .dontskipff option forces writing empty pages, don't use it if unsure.\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);
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue