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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Jul 2012 17:17:06 +0000 (18:17 +0100)
commit7bb9c75436212813b38700c34df4bbb6eb82debe
treed1ad62dc142eb4906ec413f68050463c4c6c6267
parent75453a08e3658ca467cda3c5fe5632e563742421
mtd: nand: Use the mirror BBT descriptor when reading its version

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>
Cc: stable@vger.kernel.org [v2.6.37+]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_bbt.c