]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5032efecc7a574baa43a419a789c851b6a17130e
tree418aad59875b684d063aa00d80fe4adbd309d598
parent911495cdfd85d88dab30967a9137fcb2126f2043
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