Skip to contentSkip to conversation

Make v850 dma-mapping.h header work when !CONFIG_PCI

PATCH New Miles Bader 1 participant 1 message Apr 7, 2004

lore
Share & tools
lore
#0 lore raw

PATCH v850 1/1 Make v850 dma-mapping.h header work when !CONFIG_PCI

Linus, please apply.

[Is this something that should be done in <asm-generic/dma-mapping/h>?]

include/asm-v850/dma-mapping.h +11 -0
diff -ruN -X../cludes linux-2.6.5-uc0/include/asm-v850/dma-mapping.h linux-2.6.5-uc0-v850-20040407/include/asm-v850/dma-mapping.h
@@ -1 +1,12 @@
+#ifndef __V850_DMA_MAPPING_H__
+#define __V850_DMA_MAPPING_H__
+
+#include <linux/config.h>
+
+#ifdef CONFIG_PCI
 #include <asm-generic/dma-mapping.h>
+#else
+#include <asm-generic/dma-mapping-broken.h>
+#endif
+
+#endif /* __V850_DMA_MAPPING_H__ */