mtd: nand: pxa3xx: fix build on ARM64
authorRob Herring <robh@kernel.org>
Thu, 30 Apr 2015 20:17:47 +0000 (15:17 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 May 2015 07:11:39 +0000 (00:11 -0700)
commitce914e6b2658b9f1773ff57b3d45682a7ca4552f
tree596de52353b7ebae537ce8f9bb3e28b6a10d2fd4
parentafca11ec13066d53c7b21fdd02dff2662a86eef5
mtd: nand: pxa3xx: fix build on ARM64

In preparation to enable ARCH_MMP on ARM64, a couple of fixes are needed
to build the pxa3xx_nand driver:

Legacy DMA will only used on ARM, so also make it condtional on
CONFIG_ARM.
__raw_{read,write}sl are not available on ARM64 or generically, so use
the readsl/writesl variants instead. Somewhat inconsistently,
{read,write}sl are inherently non-swapping with the generic version
using __raw_{read,write}l.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
[Brian: added one more __raw_readsl -> readsl]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c