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)
commitd098093ba06eb032057d1aca1c2e45889e099d00
tree28ca56fe0840240fbfa55d23c90c1bc35d606030
parentce97e2bb6687d3af675ecf2e836a9122def53578
mtd: nand: Fix nanddev_neraseblocks()

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

Fixes: 9c3736a3de21 ("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