mtd: rawnand: gpmi: drop dma_ops_type
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 26 Apr 2018 15:41:22 +0000 (17:41 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 29 Apr 2018 06:56:46 +0000 (08:56 +0200)
commitc3ee3f3db1facb2b83bba003aacb17c73e710764
treec3c2f67e9d66f67eb250e1c5d8028628bea397b8
parent256c4fc76a80a69a5108069d8a09b3836bbf6542
mtd: rawnand: gpmi: drop dma_ops_type

The GPMI nand driver puts dma_ops_type in its private data struct. Based
on the ops type the DMA callback handler unmaps previously mapped
buffers. Instead of unmapping the buffers in the DMA callback handler,
do this in the caller directly which waits for the DMA transfer to
finish. This makes the whole dma_ops_type mechanism unnecessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-lib.c
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h