]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit99ebf570e9842c5811445ea2cbb6c7717c1a157a
tree510f31485713ae5be63a20fe29b3809f0fafbbb8
parent5a65ea97c38d26a51968b05d44b3b4c6a75e4a6f
[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