Skip to content

Commit

Permalink
[MTD] NAND modularize write function
Browse files Browse the repository at this point in the history
Modularize the write function and reorganaize the internal buffer
management. Remove obsolete chip options and fixup all affected
users.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed May 26, 2006
1 parent e4d222f commit f75e509
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 548 deletions.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/diskonchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ static int __init doc_probe(unsigned long physadr)
nand->ecc.mode = NAND_ECC_HW_SYNDROME;
nand->ecc.size = 512;
nand->ecc.bytes = 6;
nand->options = NAND_USE_FLASH_BBT | NAND_HWECC_SYNDROME;
nand->options = NAND_USE_FLASH_BBT;

doc->physadr = physadr;
doc->virtadr = virtadr;
Expand Down
3 changes: 0 additions & 3 deletions drivers/mtd/nand/edb7312.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ static void __exit ep7312_cleanup(void)
/* Release resources, unregister device */
nand_release(ap7312_mtd);

/* Free internal data buffer */
kfree(this->data_buf);

/* Free the MTD device structure */
kfree(ep7312_mtd);
}
Expand Down
Loading

0 comments on commit f75e509

Please sign in to comment.