mtd: denali: detect the number of banks before resetting NAND
authorJamie Iles <jamie@jamieiles.com>
Mon, 6 Jun 2011 16:11:34 +0000 (17:11 +0100)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:04 +0000 (15:02 +0300)
commitbc27ede371b0931086e9cef72e30a58fdedc4709
treefd3e6a36cacd4c53ca53ddf5669e68b62cc0eb4f
parent0dc8626a17ab8dea9f1e34c7a5d667f5331b0ddc
mtd: denali: detect the number of banks before resetting NAND

Commit c89eeda810f0ec4f0eee0206ebb79e476df9f83e (mtd: denali: detect the
number of banks) introduced runtime detection of the number of banks.

However, denali_nand_reset() uses uses denanli_nand_info::max_banks so
we need to detect the maximum number of banks before doing the reset.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/denali.c