]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] m68k/kernel/dma.c assumes !MMU_SUN3
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 9 Oct 2006 01:11:47 +0000 (02:11 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Oct 2006 01:50:58 +0000 (18:50 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/m68k/kernel/Makefile
include/asm-m68k/dma-mapping.h

index dae609797dc019f02d9899851f1c1a065a97d207..1c9ecaa473d5795e90ef0540ae3c9accedec9a20 100644 (file)
@@ -9,10 +9,11 @@ else
 endif
 extra-y        += vmlinux.lds
 
-obj-y  := entry.o process.o traps.o ints.o dma.o signal.o ptrace.o \
+obj-y  := entry.o process.o traps.o ints.o signal.o ptrace.o \
           sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
 
 obj-$(CONFIG_PCI)      += bios32.o
 obj-$(CONFIG_MODULES)  += module.o
+obj-y$(CONFIG_MMU_SUN3) += dma.o       # no, it's not a typo
 
 EXTRA_AFLAGS := -traditional
index c1299c3beb507e9c17f2da8f2b2813fe20ea2224..d90d841d3dfde278269de086af882d87346a9892 100644 (file)
@@ -5,6 +5,7 @@
 
 struct scatterlist;
 
+#ifndef CONFIG_MMU_SUN3
 static inline int dma_supported(struct device *dev, u64 mask)
 {
        return 1;
@@ -88,4 +89,8 @@ static inline int dma_mapping_error(dma_addr_t handle)
        return 0;
 }
 
+#else
+#include <asm-generic/dma-mapping-broken.h>
+#endif
+
 #endif  /* _M68K_DMA_MAPPING_H */