diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-07 23:25:59 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-01-26 10:27:35 -0800 |
commit | f88f44cbf10cf5bd42d6e46ea6625d9bfa5f155d (patch) | |
tree | 0853dfd930e735142ab2a20583f3a838360f73be /arch/arm | |
parent | 2c9e57799f1b7ef35a9e7f774edac6b3feac6399 (diff) | |
download | linux-f88f44cbf10cf5bd42d6e46ea6625d9bfa5f155d.tar.gz linux-f88f44cbf10cf5bd42d6e46ea6625d9bfa5f155d.tar.bz2 linux-f88f44cbf10cf5bd42d6e46ea6625d9bfa5f155d.zip |
mtd: nand: s3c2410: kill the ->ecc_layout field
The s3c2410 is allowing board data to overload the default ECC layout
defined inside the driver, but this feature is not used by board
specific definitions.
Kill this field so that we can easily move to a model where ecclayout
are dynamically allocated by the NAND controller driver.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index b53d4ff3befb..84baa16f4c0b 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c @@ -727,15 +727,6 @@ static int __init s3c_nand_copy_set(struct s3c2410_nand_set *set) return -ENOMEM; } - if (set->ecc_layout) { - ptr = kmemdup(set->ecc_layout, - sizeof(struct nand_ecclayout), GFP_KERNEL); - set->ecc_layout = ptr; - - if (!ptr) - return -ENOMEM; - } - return 0; } |