Boris Brezillon 7beb37e5f0 mtd: rawnand: Use nanddev_mtd_max_bad_blocks()
nanddev_mtd_max_bad_blocks() is implemented by the generic NAND layer
and is already doing what we need. Reuse this function instead of
having our own implementation.

While at it, get rid of the ->max_bb_per_die and ->blocks_per_die
fields which are now unused.

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
2019-04-08 10:21:14 +02:00
..
2019-03-04 18:59:37 -08:00
2018-12-29 12:03:17 -08:00
2019-03-04 19:23:56 -08:00
2018-10-31 08:54:16 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-12-28 20:54:57 -08:00
2018-11-12 11:44:13 +01:00
2018-10-16 08:09:58 -06:00
2019-03-04 18:59:37 -08:00
2019-01-07 14:06:24 +01:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00