diff options
author | Scott Wood <scottwood@freescale.com> | 2009-04-01 15:02:13 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2009-07-16 19:07:47 -0500 |
commit | be33b046b549ad88c204c209508cd7657232ffbd (patch) | |
tree | 5e7c1c74c77a0dbaf7e4f17d3ed047d85beae414 /common/cmd_mtdparts.c | |
parent | fbdaafaee71e2c7f2c31b3582ab6d8679efee8d3 (diff) | |
download | u-boot-imx-be33b046b549ad88c204c209508cd7657232ffbd.zip u-boot-imx-be33b046b549ad88c204c209508cd7657232ffbd.tar.gz u-boot-imx-be33b046b549ad88c204c209508cd7657232ffbd.tar.bz2 |
Remove legacy NAND and disk on chip code.
Legacy NAND had been scheduled for removal. Any boards that use this
were already not building in the previous release due to an #error.
The disk on chip code in common/cmd_doc.c relies on legacy NAND,
and it has also been removed. There is newer disk on chip code
in drivers/mtd/nand; someone with access to hardware and sufficient
time and motivation can try to get that working, but for now disk
on chip is not supported.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'common/cmd_mtdparts.c')
-rw-r--r-- | common/cmd_mtdparts.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c index 2d1446e..665995d 100644 --- a/common/cmd_mtdparts.c +++ b/common/cmd_mtdparts.c @@ -94,12 +94,8 @@ #include <linux/mtd/mtd.h> #if defined(CONFIG_CMD_NAND) -#ifdef CONFIG_NAND_LEGACY -#include <linux/mtd/nand_legacy.h> -#else /* !CONFIG_NAND_LEGACY */ #include <linux/mtd/nand.h> #include <nand.h> -#endif /* !CONFIG_NAND_LEGACY */ #endif #if defined(CONFIG_CMD_ONENAND) @@ -462,9 +458,6 @@ static int part_del(struct mtd_device *dev, struct part_info *part) } } -#ifdef CONFIG_NAND_LEGACY - jffs2_free_cache(part); -#endif list_del(&part->link); free(part); dev->num_parts--; @@ -491,9 +484,6 @@ static void part_delall(struct list_head *head) list_for_each_safe(entry, n, head) { part_tmp = list_entry(entry, struct part_info, link); -#ifdef CONFIG_NAND_LEGACY - jffs2_free_cache(part_tmp); -#endif list_del(entry); free(part_tmp); } |