commit | 979da35536251504b6c43f9dd568903fcf637162 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Tue Apr 02 13:03:08 2019 +0900 |
committer | Miquel Raynal <miquel.raynal@bootlin.com> | Thu Apr 18 08:54:04 2019 +0200 |
tree | 418aad59875b684d063aa00d80fe4adbd309d598 | |
parent | d8e8fd0ebf8b1b8d26a160c2363479a88c1f72c2 [diff] |
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>