mtd: nand: pxa3xx-nand: switch to dmaengine
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 6 Sep 2015 13:12:47 +0000 (15:12 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 28 Sep 2015 00:33:26 +0000 (17:33 -0700)
commit8f5ba31aa565c4efe11cca2b37acbb35c4f143f2
tree454f296d634ac8e46e6d3e13af5fe65fec03f979
parente1305df1283cbe1aa57093f8766b2dfe650ed5ff
mtd: nand: pxa3xx-nand: switch to dmaengine

Now pxa architecture has a dmaengine driver, remove the access to direct
dma registers in favor of the more generic dmaengine code.

This should be also applicable for mmp and orion, provided they work in
device-tree environment.

This patch also removes the previous hack which was necessary to make
the driver work in a devicetree environment.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tested-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
[Brian: fixup use of 'enum dma_transfer_direction']
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c