Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f75e5097 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

[MTD] NAND modularize write function



Modularize the write function and reorganaize the internal buffer
management. Remove obsolete chip options and fixup all affected
users.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e4d222ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+0 −3
Original line number Diff line number Diff line
@@ -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);
}
Loading