]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: Use the mirror BBT descriptor when reading its version
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Sun, 10 Jun 2012 10:58:12 +0000 (13:58 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:48:07 +0000 (03:48 +0100)
commitfda0be7fdddfb748257c7d6d7d5c12e5b50f7ae1
tree5e7164c23d8179a12a08ce386b2be7bf00660de5
parentd562efad2326a7c2383a211f41d0d4121fad5d4b
mtd: nand: Use the mirror BBT descriptor when reading its version

commit 7bb9c75436212813b38700c34df4bbb6eb82debe upstream.

The code responsible for reading the version of the mirror bbt was
incorrectly using the descriptor of the main bbt.

Pass the mirror bbt descriptor to 'scan_read_raw' when reading the
version of the mirror bbt.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/mtd/nand/nand_bbt.c