Blackfin: fix dma-mapping build errors
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 23 Jun 2009 01:48:37 +0000 (21:48 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 23 Jun 2009 02:31:00 +0000 (22:31 -0400)
The recent deprecation of dma_sync_{sg,single} ironically broke Blackfin
systems.  This is because we don't define dma_sync_sg_for_cpu at all, so
until the DMA asm-generic conversion/cleanup is done after the next
release, simply stub out the dma_sync_sg_for_{cpu,device} functions.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/dma-mapping.h

index d7d9148e433c7aa7d567f0ab5fe346897b07fae9..ed6b1f3cccce769cf62b38ae70cbac7c7c77e1bd 100644 (file)
@@ -95,4 +95,17 @@ static inline void dma_sync_single_for_device(struct device *dev,
                                        enum dma_data_direction dir)
 {
 }
+
+static inline void dma_sync_sg_for_cpu(struct device *dev,
+                                       struct scatterlist *sg,
+                                       int nents, enum dma_data_direction dir)
+{
+}
+
+static inline void dma_sync_sg_for_device(struct device *dev,
+                                       struct scatterlist *sg,
+                                       int nents, enum dma_data_direction dir)
+{
+}
+
 #endif                         /* _BLACKFIN_DMA_MAPPING_H */