[MTD] Simplify NAND locking
authorThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Tue, 23 May 2006 09:37:03 +0000 (11:37 +0200)
committerThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Tue, 23 May 2006 09:37:03 +0000 (11:37 +0200)
commita36ed2995c56d4f858ecb524a78837473e7115ae
tree510f31485713ae5be63a20fe29b3809f0fafbbb8
parent819d6a32c397534c819d3c72a3947b7e7e4bec4b
[MTD] Simplify NAND locking

Replace the chip lock by a the controller lock. For simple drivers a
dummy controller structure is created by the scan code.
This simplifies the locking algorithm in nand_get/release_chip().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h