mtd: nand: Fix nanddev_neraseblocks()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 28 Oct 2018 11:29:55 +0000 (12:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:19:19 +0000 (09:19 +0100)
commit9bec0c3da4802291661124656fbd7d458e81c198
tree72af960e86ee800269860f862ef4efe6797931fa
parent9e9dd0f1c345ba9b4d3d409345aa362815785bf5
mtd: nand: Fix nanddev_neraseblocks()

commit d098093ba06eb032057d1aca1c2e45889e099d00 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/mtd/nand.h