]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Fix nanddev_neraseblocks()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 28 Oct 2018 11:29:55 +0000 (12:29 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 5 Nov 2018 08:23:47 +0000 (09:23 +0100)
commit8ce4276cc2231f63570dffe5f7c8dd067e745f3e
tree28ca56fe0840240fbfa55d23c90c1bc35d606030
parent186f8a7cee63d819304b438750a330d10c3bccd0
mtd: nand: Fix nanddev_neraseblocks()

nanddev_neraseblocks() currently returns the number pages per LUN
instead of the total number of eraseblocks.

Fixes: b6d89b2a0103 ("mtd: nand: Add core infrastructure to deal with NAND devices")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
include/linux/mtd/nand.h