summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-01-30 10:50:43 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2007-02-09 15:27:12 +0000
commit64f60710568db5cec1a76c1d1e261b239f9ef809 (patch)
tree211872ced9ff58baf4480fc99a1d58743b001586 /drivers/mtd/nand
parentd416085572eb6a44fd2cf29fd7aed83ffc95fd88 (diff)
downloadkernel-crypto-64f60710568db5cec1a76c1d1e261b239f9ef809.tar.gz
kernel-crypto-64f60710568db5cec1a76c1d1e261b239f9ef809.tar.xz
kernel-crypto-64f60710568db5cec1a76c1d1e261b239f9ef809.zip
[MTD] remove unused ecctype,eccsize fields from struct mtd_info
Remove unused and broken mtd->ecctype and mtd->eccsize fields from struct mtd_info. Do not remove them from userspace API data structures (don't want to breake userspace) but mark them as obsolete by a comment. Any userspace program which uses them should be half-broken anyway, so this is more about saving data structure size. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/nand_base.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index c13d6642636..acaf97bc80d 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2566,7 +2566,6 @@ int nand_scan_tail(struct mtd_info *mtd)
/* Fill in remaining MTD driver data */
mtd->type = MTD_NANDFLASH;
mtd->flags = MTD_CAP_NANDFLASH;
- mtd->ecctype = MTD_ECC_SW;
mtd->erase = nand_erase;
mtd->point = NULL;
mtd->unpoint = NULL;