ARM: 5857/1: ARM: dmabounce: fix build
authorMike Rapoport <mike@compulab.co.il>
Tue, 22 Dec 2009 06:31:04 +0000 (07:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 22 Dec 2009 15:32:32 +0000 (15:32 +0000)
Commit f74f7e57ae9fa12b2951ae62ce3557799b318399 (ARM: use
flush_kernel_dcache_area() for dmabounce) has broken dmabounce build:

  CC      arch/arm/common/dmabounce.o
arch/arm/common/dmabounce.c: In function 'unmap_single':
arch/arm/common/dmabounce.c:315: error: implicit declaration of function '__cpuc_flush_kernel_dcache_area'
make[2]: *** [arch/arm/common/dmabounce.o] Error 1

Fix it.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c

index bc90364a96c7bf364fdd10aa198a0d93ab2af2b3..cc32c1e54a59825dc93fcbba098fcdbd51d9c8f0 100644 (file)
@@ -312,7 +312,7 @@ static inline void unmap_single(struct device *dev, dma_addr_t dma_addr,
                         * we need to ensure that the data will be coherent
                         * with user mappings.
                         */
-                       __cpuc_flush_kernel_dcache_area(ptr, size);
+                       __cpuc_flush_dcache_area(ptr, size);
                }
                free_safe_buffer(dev->archdata.dmabounce, buf);
        }