diff options
author | Antoine Ténart <antoine.tenart@free-electrons.com> | 2015-10-21 04:29:00 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-26 14:38:10 -0400 |
commit | ab53a571a4777c36324a030a632281daaf505118 (patch) | |
tree | d2a35e37e78df62b6208161064e7f74dce4341de /drivers/mtd | |
parent | 64862dbc98ca0f57022802e8e286c596d8c183e9 (diff) |
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@arndb.de>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 77b3206aef01..91605c1ee169 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) | |||
532 | * the polling on the last read. | 532 | * the polling on the last read. |
533 | */ | 533 | */ |
534 | while (len > 8) { | 534 | while (len > 8) { |
535 | readsl(info->mmio_base + NDDB, data, 8); | 535 | ioread32_rep(info->mmio_base + NDDB, data, 8); |
536 | 536 | ||
537 | ret = readl_relaxed_poll_timeout(info->mmio_base + NDSR, val, | 537 | ret = readl_relaxed_poll_timeout(info->mmio_base + NDSR, val, |
538 | val & NDSR_RDDREQ, 1000, 5000); | 538 | val & NDSR_RDDREQ, 1000, 5000); |
@@ -547,7 +547,7 @@ static void drain_fifo(struct pxa3xx_nand_info *info, void *data, int len) | |||
547 | } | 547 | } |
548 | } | 548 | } |
549 | 549 | ||
550 | readsl(info->mmio_base + NDDB, data, len); | 550 | ioread32_rep(info->mmio_base + NDDB, data, len); |
551 | } | 551 | } |
552 | 552 | ||
553 | static void handle_data_pio(struct pxa3xx_nand_info *info) | 553 | static void handle_data_pio(struct pxa3xx_nand_info *info) |