mtd: nand: jz4740: kill the ->ecc_layout field
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Mar 24 11:59:04 PDT 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d5e83ea7dc510fe8e7b4a54e5a93f3dd760f6d7e
Commit: d5e83ea7dc510fe8e7b4a54e5a93f3dd760f6d7e
Parent: f88f44cbf10cf5bd42d6e46ea6625d9bfa5f155d
Author: Boris BREZILLON <boris.brezillon at free-electrons.com>
AuthorDate: Mon Dec 7 23:26:00 2015 +0100
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 26 10:27:35 2016 -0800
mtd: nand: jz4740: kill the ->ecc_layout field
->ecc_layout is not used by any board file. Kill this field to avoid any
confusion. New boards are encouraged to use the default ECC layout defined
in NAND core.
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
arch/mips/include/asm/mach-jz4740/jz4740_nand.h | 2 --
drivers/mtd/nand/jz4740_nand.c | 3 ---
2 files changed, 5 deletions(-)
diff --git a/arch/mips/include/asm/mach-jz4740/jz4740_nand.h b/arch/mips/include/asm/mach-jz4740/jz4740_nand.h
index 79cff26..398733e 100644
--- a/arch/mips/include/asm/mach-jz4740/jz4740_nand.h
+++ b/arch/mips/include/asm/mach-jz4740/jz4740_nand.h
@@ -25,8 +25,6 @@ struct jz_nand_platform_data {
int num_partitions;
struct mtd_partition *partitions;
- struct nand_ecclayout *ecc_layout;
-
unsigned char banks[JZ_NAND_NUM_BANKS];
void (*ident_callback)(struct platform_device *, struct nand_chip *,
diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
index b19d2a9..673ceb2 100644
--- a/drivers/mtd/nand/jz4740_nand.c
+++ b/drivers/mtd/nand/jz4740_nand.c
@@ -427,9 +427,6 @@ static int jz_nand_probe(struct platform_device *pdev)
chip->ecc.strength = 4;
chip->ecc.options = NAND_ECC_GENERIC_ERASED_CHECK;
- if (pdata)
- chip->ecc.layout = pdata->ecc_layout;
-
chip->chip_delay = 50;
chip->cmd_ctrl = jz_nand_cmd_ctrl;
chip->select_chip = jz_nand_select_chip;
More information about the linux-mtd-cvs
mailing list