cmd_flash updates: Remove unneeded CONFIG_CMD_JFFS2
PATCH 1/1 cmd_flash updates: Remove unneeded CONFIG_CMD_JFFS2
Signed-off-by Stefan Roese <[email protected]>
--- common/cmd_flash.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
common/cmd_flash.c +6 -6
@@ -31,7 +31,7 @@#include <dataflash.h> #endif -#if defined(CONFIG_CMD_JFFS2 ) && defined(CONFIG_CMD_MTDPARTS ) +#if defined(CONFIG_CMD_MTDPARTS )#include <jffs2/jffs2.h> /* parition handling routines */
@@ -325,7 +325,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])flash_info_t *info;ulong bank, addr_first, addr_last;int n, sect_first, sect_last; -#if defined(CONFIG_CMD_JFFS2 ) && defined(CONFIG_CMD_MTDPARTS ) +#if defined(CONFIG_CMD_MTDPARTS )struct mtd_device *dev;struct part_info *part;u8 dev_type, dev_num, pnum;
@@ -357,7 +357,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])return rcode; } -#if defined(CONFIG_CMD_JFFS2 ) && defined(CONFIG_CMD_MTDPARTS ) +#if defined(CONFIG_CMD_MTDPARTS )/* erase <part-id> - erase partition */ if ((argc ==2 ) && (mtd_id_parse (argv[1 ],NULL , &dev_type, &dev_num) ==0 )) {mtdparts_init ();
@@ -470,7 +470,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])#endif /* CONFIG_SYS_NO_FLASH */ ulong addr_first, addr_last;int p; -#if defined(CONFIG_CMD_JFFS2 ) && defined(CONFIG_CMD_MTDPARTS ) +#if defined(CONFIG_CMD_MTDPARTS )struct mtd_device *dev;struct part_info *part;u8 dev_type, dev_num, pnum;
@@ -563,7 +563,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])return rcode; } -#if defined(CONFIG_CMD_JFFS2 ) && defined(CONFIG_CMD_MTDPARTS ) +#if defined(CONFIG_CMD_MTDPARTS )/* protect on/off <part-id> */ if ((argc ==3 ) && (mtd_id_parse (argv[2 ],NULL , &dev_type, &dev_num) ==0 )) {mtdparts_init ();
@@ -698,7 +698,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)/**************************************************/ -#if defined(CONFIG_CMD_JFFS2 ) && defined(CONFIG_CMD_MTDPARTS ) +#if defined(CONFIG_CMD_MTDPARTS )# define TMP_ERASE "erase <part-id>\n - erase partition\n"# define TMP_PROT_ON "protect on <part-id>\n - protect partition\n"# define TMP_PROT_OFF "protect off <part-id>\n - make partition writable\n"
Signature · 1 line
1.6.2.5
PATCH 1/1 cmd_flash updates: Remove unneeded CONFIG_CMD_JFFS2
Dear Stefan Roese,
Quoted 4 lines · In message <[email protected]> you wrote:
Signed-off-by Stefan Roese <[email protected]>--- common/cmd_flash.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
I put this patch on hold until the recently detected problems in this area have been fixed (see
http://lists.denx.de/pipermail/u-boot/2009-May/052769.html )
Please trigger me again if you think it should really be applied, or submit a rebased one if needed. Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The face of war has never changed. Surely it is more logical to heal than to kill. -- Surak of Vulcan, "The Savage Curtain", stardate 5906.5