mtd: rawnand: atmel: Use nand_prog_page_end_op()
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 20 Jul 2020 13:13:54 +0000 (16:13 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 14:44:15 +0000 (16:44 +0200)
commit060c931c946f33552d652d01bc1010d843e2baa6
tree37b6ae7fc8c00d2dcd08f28dfa7f37014849e0a2
parent5b2baf1fe5fd0b67d28cb18436b06ccdd2c2becf
mtd: rawnand: atmel: Use nand_prog_page_end_op()

The nand_prog_page_end_op() sequence is open-coded in
atmel_hsmc_nand_pmecc_write_pg(). Let's use the generic helper here.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200720131356.1579073-5-tudor.ambarus@microchip.com
drivers/mtd/nand/raw/atmel/nand-controller.c