mtd: rawnand: hynix: Use ->exec_op() in hynix_nand_reg_write_op()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 4 Jul 2018 14:08:58 +0000 (16:08 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 08:10:15 +0000 (10:10 +0200)
commit20366e19e28f9954b25580c020d7a4e0db6055c4
tree7f06333107d8c422f5fb22e525b480bd186fb67a
parentf9e64d61042575960ce868fa974d9dbe4937c59a
mtd: rawnand: hynix: Use ->exec_op() in hynix_nand_reg_write_op()

Modern NAND controller drivers implement ->exec_op() instead of
->cmdfunc(), make sure we don't end up with a NULL pointer dereference
when hynix_nand_reg_write_op() is called.

Fixes: 8878b126df76 ("mtd: nand: add ->exec_op() implementation")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_hynix.c