diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2008-02-26 18:42:39 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 14:47:42 -0400 |
commit | ca5c23c3b8882d61bf19b7685f2244501902869f (patch) | |
tree | 796c03bd0f6b1399148e46fa70f8d8c4be356f41 /drivers/mtd/chips/cfi_cmdset_0002.c | |
parent | fe69af002e26ca39824f626459c16d642607b573 (diff) |
[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_cmdset_0002.c')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index 458d477614d6..5cd657322bc4 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c | |||
@@ -723,10 +723,10 @@ static void __xipram xip_udelay(struct map_info *map, struct flchip *chip, | |||
723 | chip->erase_suspended = 1; | 723 | chip->erase_suspended = 1; |
724 | map_write(map, CMD(0xf0), adr); | 724 | map_write(map, CMD(0xf0), adr); |
725 | (void) map_read(map, adr); | 725 | (void) map_read(map, adr); |
726 | asm volatile (".rep 8; nop; .endr"); | 726 | xip_iprefetch(); |
727 | local_irq_enable(); | 727 | local_irq_enable(); |
728 | spin_unlock(chip->mutex); | 728 | spin_unlock(chip->mutex); |
729 | asm volatile (".rep 8; nop; .endr"); | 729 | xip_iprefetch(); |
730 | cond_resched(); | 730 | cond_resched(); |
731 | 731 | ||
732 | /* | 732 | /* |