]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Fix nanddev_mtd_erase()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 10 Apr 2018 15:15:13 +0000 (17:15 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 22 Apr 2018 17:59:29 +0000 (19:59 +0200)
commita4b1542bc6c3405e395baff384f9502eb4ff0c3f
treec6c0bfec92a0e8d0f599320b5c015a87ef1ede85
parent1442de6c2764a56bf89777d24c7d9779c21b6409
mtd: nand: Fix nanddev_mtd_erase()

Commit 88ec6dc3ed86 ("mtd: Stop updating erase_info->state and calling
mtd_erase_callback()") removed the einfo->state field and the
MTD_ERASE_XXX macros. At the same time, the generic NAND layer was added
and made sure to update the erase info state.

It did not result in a build failure after merging the nand/for-4.17
branch in mtd/next because the generic NAND layer is not selected yet.
Let's fix that before a config option starts selecting MTD_NAND_CORE.

Fixes: 88ec6dc3ed86 ("mtd: Stop updating erase_info->state and calling mtd_erase_callback()")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/core.c