diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2008-02-27 00:42:39 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 20:47:42 +0200 |
commit | ca5c23c3b8882d61bf19b7685f2244501902869f (patch) | |
tree | 796c03bd0f6b1399148e46fa70f8d8c4be356f41 /drivers/mtd/chips/cfi_util.c | |
parent | [MTD] [NAND] support for pxa3xx (diff) | |
download | linux-ca5c23c3b8882d61bf19b7685f2244501902869f.tar.xz linux-ca5c23c3b8882d61bf19b7685f2244501902869f.zip |
[MTD] XIP: Use generic xip_iprefetch() instead of asm volatile (...)
Untested, but shouldn't break anything... Makes MTD_XIP arch
independent. I guess this is why xip_iprefetch() was made for.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/chips/cfi_util.c')
-rw-r--r-- | drivers/mtd/chips/cfi_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c index 2e51496c248e..72e0022a47bf 100644 --- a/drivers/mtd/chips/cfi_util.c +++ b/drivers/mtd/chips/cfi_util.c @@ -65,7 +65,7 @@ __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* n #ifdef CONFIG_MTD_XIP (void) map_read(map, base); - asm volatile (".rep 8; nop; .endr"); + xip_iprefetch(); local_irq_enable(); #endif |