mtd: pxa3xx_nand: fix some compile issues on non-ARM arches

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 6 10:59:26 PST 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ab53a571a4777c36324a030a632281daaf505118
Commit:     ab53a571a4777c36324a030a632281daaf505118
Parent:     64862dbc98ca0f57022802e8e286c596d8c183e9
Author:     Antoine Ténart <antoine.tenart at free-electrons.com>
AuthorDate: Wed Oct 21 10:29:00 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Oct 26 11:38:10 2015 -0700

    mtd: pxa3xx_nand: fix some compile issues on non-ARM arches
    
    Using readsl() result in a build error on i386. Fix this by using
    ioread32_rep() instead, to allow compile testing the pxa3xx nand driver
    on other architectures later.
    
    Suggested-by: Arnd Bergmann <arnd at arndb.de>
    Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>
    Acked-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/pxa3xx_nand.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 77b3206..91605c1 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -532,7 +532,7 @@ static void drain_fifo(struct pxa3xx_nand_info *info, void *data, int len)
 		 * the polling on the last read.
 		 */
 		while (len > 8) {
-			readsl(info->mmio_base + NDDB, data, 8);
+			ioread32_rep(info->mmio_base + NDDB, data, 8);
 
 			ret = readl_relaxed_poll_timeout(info->mmio_base + NDSR, val,
 							 val & NDSR_RDDREQ, 1000, 5000);
@@ -547,7 +547,7 @@ static void drain_fifo(struct pxa3xx_nand_info *info, void *data, int len)
 		}
 	}
 
-	readsl(info->mmio_base + NDDB, data, len);
+	ioread32_rep(info->mmio_base + NDDB, data, len);
 }
 
 static void handle_data_pio(struct pxa3xx_nand_info *info)



More information about the linux-mtd-cvs mailing list