* Patch by Andreas Engel, 12 Jul 2004:
Replaced hardcoded PL011 clock frequency with config variable.
Fixed wrong CONFIG_CMD_DFL doc.
* Patch by Thomas Viehweger, 09 Jun 2004:
make it possible to remove chpart when there is only one partition
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
index e49b74d..f7a5f9e 100644
--- a/common/cmd_jffs2.c
+++ b/common/cmd_jffs2.c
@@ -47,6 +47,8 @@
#ifndef CFG_JFFS_CUSTOM_PART
+#define CFG_JFFS_SINGLE_PART 1
+
static struct part_info part;
#ifndef CONFIG_JFFS2_NAND
@@ -80,9 +82,6 @@
flash_info[CFG_JFFS2_FIRST_BANK].start[0];
#endif
- /* unused in current jffs2 loader */
- part.erasesize = 0;
-
/* Mark the struct as ready */
part.usr_priv=(void*)1;
@@ -230,6 +229,7 @@
return 0;
}
+#ifndef CFG_JFFS_SINGLE_PART
int
do_jffs2_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
@@ -257,6 +257,7 @@
return 0;
}
+#endif /* CFG_JFFS_SINGLE_PART */
/***************************************************/