[POWERPC] Fix build problem in ppc4xx_sgdma.c
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 7 May 2007 02:13:36 +0000 (12:13 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 7 May 2007 10:31:16 +0000 (20:31 +1000)
ppc4xx_sgdma.c is #including asm/dma-mapping.h directly, which should
only ever be included via linux/dma-mapping.h.  asm/dma-mapping.h
relies on an enum defined in linux/dma-mapping.h before its own
include.  This fixes the problem.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/syslib/ppc4xx_sgdma.c

index 939abe3c1f454363c6362656940a398ec0109c47..93349e48bfbf3eeaee50ce32546f606f745a6855 100644 (file)
 #include <linux/mm.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/dma-mapping.h>
 #include <linux/pci.h>
 
 #include <asm/system.h>
 #include <asm/io.h>
-#include <asm/dma-mapping.h>
 #include <asm/ppc4xx_dma.h>
 
 void