diff options
| author | Nicolas Pitre <nico@cam.org> | 2004-09-13 01:11:27 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-13 01:11:27 -0700 |
| commit | 5c422c68d6e8cb32f6d3525858c5fb8bc71ef754 (patch) | |
| tree | a18c3d50c8096577b99da2f72418984cceda07ee | |
| parent | a18e179afa0decaaf7fbc46c304d3ea0671c8847 (diff) | |
[PATCH] linux/dma-mapping.h needs linux/device.h
It seems that most architectures already include linux/device.h in their
own asm/dma-mapping.h. Most but not all, and some drivers fail to
compile on those architectures that don't. Since everybody needs it
let's include device.h from one place only and fix compilation for
everybody.
| -rw-r--r-- | include/asm-i386/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-ia64/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-mips/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-ppc/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-ppc64/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-sh/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-sh64/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-sparc/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/asm-x86_64/dma-mapping.h | 1 | ||||
| -rw-r--r-- | include/linux/dma-mapping.h | 1 |
10 files changed, 1 insertions, 9 deletions
diff --git a/include/asm-i386/dma-mapping.h b/include/asm-i386/dma-mapping.h index eced63913860..8d432bd90f2b 100644 --- a/include/asm-i386/dma-mapping.h +++ b/include/asm-i386/dma-mapping.h @@ -1,7 +1,6 @@ #ifndef _ASM_I386_DMA_MAPPING_H #define _ASM_I386_DMA_MAPPING_H -#include <linux/device.h> #include <linux/mm.h> #include <asm/cache.h> diff --git a/include/asm-ia64/dma-mapping.h b/include/asm-ia64/dma-mapping.h index 695690a5429b..6347c9845642 100644 --- a/include/asm-ia64/dma-mapping.h +++ b/include/asm-ia64/dma-mapping.h @@ -6,7 +6,6 @@ * David Mosberger-Tang <davidm@hpl.hp.com> */ #include <linux/config.h> -#include <linux/device.h> #include <asm/machvec.h> #define dma_alloc_coherent platform_dma_alloc_coherent diff --git a/include/asm-mips/dma-mapping.h b/include/asm-mips/dma-mapping.h index a11cf994d526..716951187bf0 100644 --- a/include/asm-mips/dma-mapping.h +++ b/include/asm-mips/dma-mapping.h @@ -1,7 +1,6 @@ #ifndef _ASM_DMA_MAPPING_H #define _ASM_DMA_MAPPING_H -#include <linux/device.h> #include <asm/scatterlist.h> #include <asm/cache.h> diff --git a/include/asm-ppc/dma-mapping.h b/include/asm-ppc/dma-mapping.h index 9be4f7297400..7f0487afebbe 100644 --- a/include/asm-ppc/dma-mapping.h +++ b/include/asm-ppc/dma-mapping.h @@ -8,7 +8,6 @@ #include <linux/config.h> /* need struct page definitions */ #include <linux/mm.h> -#include <linux/device.h> #include <asm/scatterlist.h> #include <asm/io.h> diff --git a/include/asm-ppc64/dma-mapping.h b/include/asm-ppc64/dma-mapping.h index 0cdc5346f6f8..1e05f389e72b 100644 --- a/include/asm-ppc64/dma-mapping.h +++ b/include/asm-ppc64/dma-mapping.h @@ -8,7 +8,6 @@ #define _ASM_DMA_MAPPING_H #include <linux/types.h> -#include <linux/device.h> #include <linux/cache.h> /* need struct page definitions */ #include <linux/mm.h> diff --git a/include/asm-sh/dma-mapping.h b/include/asm-sh/dma-mapping.h index 8f149477ee2c..8876ec7b0e4d 100644 --- a/include/asm-sh/dma-mapping.h +++ b/include/asm-sh/dma-mapping.h @@ -3,7 +3,6 @@ #include <linux/config.h> #include <linux/mm.h> -#include <linux/device.h> #include <asm/scatterlist.h> #include <asm/io.h> diff --git a/include/asm-sh64/dma-mapping.h b/include/asm-sh64/dma-mapping.h index 3a6424986b4b..b8d26fe677f4 100644 --- a/include/asm-sh64/dma-mapping.h +++ b/include/asm-sh64/dma-mapping.h @@ -3,7 +3,6 @@ #include <linux/config.h> #include <linux/mm.h> -#include <linux/device.h> #include <asm/scatterlist.h> #include <asm/io.h> diff --git a/include/asm-sparc/dma-mapping.h b/include/asm-sparc/dma-mapping.h index 08ede04f7eaf..2dc5bb8effa6 100644 --- a/include/asm-sparc/dma-mapping.h +++ b/include/asm-sparc/dma-mapping.h @@ -2,7 +2,6 @@ #define _ASM_SPARC_DMA_MAPPING_H #include <linux/config.h> -#include <linux/device.h> #ifdef CONFIG_PCI #include <asm-generic/dma-mapping.h> diff --git a/include/asm-x86_64/dma-mapping.h b/include/asm-x86_64/dma-mapping.h index 95102ecc1b70..a416dc31634a 100644 --- a/include/asm-x86_64/dma-mapping.h +++ b/include/asm-x86_64/dma-mapping.h @@ -7,7 +7,6 @@ */ #include <linux/config.h> -#include <linux/device.h> #include <asm/scatterlist.h> #include <asm/io.h> diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 3c545e326d57..806c305332c1 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -1,6 +1,7 @@ #ifndef _ASM_LINUX_DMA_MAPPING_H #define _ASM_LINUX_DMA_MAPPING_H +#include <linux/device.h> #include <linux/err.h> /* These definitions mirror those in pci.h, so they can be used |
