diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-23 06:00:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-23 06:00:46 -0400 |
commit | 6dfc6d250d0b7ebaa6423c44dcd09fcfe68deabd (patch) | |
tree | 2be25b1e302eca5984a8ad5ed3e5bde77bafaabb /drivers/mtd/nand/ppchameleonevb.c | |
parent | 7aa65bfd6793a56cc3bbce8436abbfea3a7bdd1f (diff) |
[MTD] NAND modularize ECC
First step of modularizing ECC support.
- Move ECC related functionality into a seperate embedded data structure
- Get rid of the hardware dependend constants to simplify new ECC models
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/nand/ppchameleonevb.c')
-rw-r--r-- | drivers/mtd/nand/ppchameleonevb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/ppchameleonevb.c b/drivers/mtd/nand/ppchameleonevb.c index 5d4d16fb1df6..9fab0998524d 100644 --- a/drivers/mtd/nand/ppchameleonevb.c +++ b/drivers/mtd/nand/ppchameleonevb.c | |||
@@ -257,7 +257,7 @@ static int __init ppchameleonevb_init(void) | |||
257 | #endif | 257 | #endif |
258 | this->chip_delay = NAND_BIG_DELAY_US; | 258 | this->chip_delay = NAND_BIG_DELAY_US; |
259 | /* ECC mode */ | 259 | /* ECC mode */ |
260 | this->eccmode = NAND_ECC_SOFT; | 260 | this->ecc.mode = NAND_ECC_SOFT; |
261 | 261 | ||
262 | /* Scan to find existence of the device (it could not be mounted) */ | 262 | /* Scan to find existence of the device (it could not be mounted) */ |
263 | if (nand_scan(ppchameleon_mtd, 1)) { | 263 | if (nand_scan(ppchameleon_mtd, 1)) { |
@@ -358,7 +358,7 @@ static int __init ppchameleonevb_init(void) | |||
358 | this->chip_delay = NAND_SMALL_DELAY_US; | 358 | this->chip_delay = NAND_SMALL_DELAY_US; |
359 | 359 | ||
360 | /* ECC mode */ | 360 | /* ECC mode */ |
361 | this->eccmode = NAND_ECC_SOFT; | 361 | this->ecc.mode = NAND_ECC_SOFT; |
362 | 362 | ||
363 | /* Scan to find existence of the device */ | 363 | /* Scan to find existence of the device */ |
364 | if (nand_scan(ppchameleonevb_mtd, 1)) { | 364 | if (nand_scan(ppchameleonevb_mtd, 1)) { |