diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/maps/pxa2xx-flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c index cb933ac475d5..82113295c266 100644 --- a/drivers/mtd/maps/pxa2xx-flash.c +++ b/drivers/mtd/maps/pxa2xx-flash.c | |||
| @@ -14,20 +14,20 @@ | |||
| 14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
| 16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/dma-mapping.h> | ||
| 18 | #include <linux/mtd/mtd.h> | 17 | #include <linux/mtd/mtd.h> |
| 19 | #include <linux/mtd/map.h> | 18 | #include <linux/mtd/map.h> |
| 20 | #include <linux/mtd/partitions.h> | 19 | #include <linux/mtd/partitions.h> |
| 21 | 20 | ||
| 22 | #include <asm/io.h> | 21 | #include <asm/io.h> |
| 23 | #include <asm/hardware.h> | 22 | #include <asm/hardware.h> |
| 23 | #include <asm/cacheflush.h> | ||
| 24 | 24 | ||
| 25 | #include <asm/mach/flash.h> | 25 | #include <asm/mach/flash.h> |
| 26 | 26 | ||
| 27 | static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from, | 27 | static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from, |
| 28 | ssize_t len) | 28 | ssize_t len) |
| 29 | { | 29 | { |
| 30 | consistent_sync((char *)map->cached + from, len, DMA_FROM_DEVICE); | 30 | flush_ioremap_region(map->phys, map->cached, from, len); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | struct pxa2xx_flash_info { | 33 | struct pxa2xx_flash_info { |
