From 6705d81e90ed4466d6e4f445104826096da0c521 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 2 Aug 2004 23:22:59 +0000 Subject: * 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 --- common/cmd_jffs2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common') 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 @@ static int part_num=0; #ifndef CFG_JFFS_CUSTOM_PART +#define CFG_JFFS_SINGLE_PART 1 + static struct part_info part; #ifndef CONFIG_JFFS2_NAND @@ -80,9 +82,6 @@ jffs2_part_info(int part_num) 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 @@ do_jffs2_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) 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 @@ do_jffs2_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return 0; } +#endif /* CFG_JFFS_SINGLE_PART */ /***************************************************/ -- cgit v1.1