mtd: rawnand: denali: remove DENALI_NR_BANKS macro
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 2 Apr 2019 04:03:08 +0000 (13:03 +0900)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 18 Apr 2019 06:54:04 +0000 (08:54 +0200)
commit979da35536251504b6c43f9dd568903fcf637162
tree418aad59875b684d063aa00d80fe4adbd309d598
parentd8e8fd0ebf8b1b8d26a160c2363479a88c1f72c2
mtd: rawnand: denali: remove DENALI_NR_BANKS macro

Use the runtime-detected denali->nbanks instead of hard-coded
DENALI_NR_BANKS (=4).

The actual number of banks depends on the IP configuration, and
can be less than DENALI_NR_BANKS. It is pointless to touch
registers of unsupported banks.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/denali.c