diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-05-03 23:25:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-20 18:14:49 -0400 |
commit | b45281412a6334ab2be5d7e449c98f50fb424a78 (patch) | |
tree | 9ee9ac0e28ec2f5802349ff6e8e0db64d8804a49 | |
parent | 482b91c7f1ca3442f5cd57525e82d8e7b2dff8c8 (diff) |
ASoC: pxa: remove mach header dependency
As we are moving the mmp platform towards multiplatform support,
we have to stop including platform header files.
This changes the pxa-ssp sound driver file to no longer depend
on mach/hardware.h and mach/dma.h. The code using the definitions
from those headers is actually gone already, the only thing
that was still being used was the pxa_dma_desc typedef, which
we can easily work around by using the normal 'struct pxa_dma_desc'
name.
The pxa2xx-dma driver still uses this header, so we include it
explicitly there, which is ok because that is only used on pxa,
not on mmp.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Xia Kaixu <kaixu.xia@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/arm/pxa2xx-pcm.c | 2 | ||||
-rw-r--r-- | sound/arm/pxa2xx-pcm.h | 3 | ||||
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 2 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-pcm.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/sound/arm/pxa2xx-pcm.c b/sound/arm/pxa2xx-pcm.c index e6c727b317fb..83be8e3f095e 100644 --- a/sound/arm/pxa2xx-pcm.c +++ b/sound/arm/pxa2xx-pcm.c | |||
@@ -14,6 +14,8 @@ | |||
14 | #include <linux/dma-mapping.h> | 14 | #include <linux/dma-mapping.h> |
15 | #include <linux/dmaengine.h> | 15 | #include <linux/dmaengine.h> |
16 | 16 | ||
17 | #include <mach/dma.h> | ||
18 | |||
17 | #include <sound/core.h> | 19 | #include <sound/core.h> |
18 | #include <sound/pxa2xx-lib.h> | 20 | #include <sound/pxa2xx-lib.h> |
19 | #include <sound/dmaengine_pcm.h> | 21 | #include <sound/dmaengine_pcm.h> |
diff --git a/sound/arm/pxa2xx-pcm.h b/sound/arm/pxa2xx-pcm.h index 2a8fc08d52a1..00330985beec 100644 --- a/sound/arm/pxa2xx-pcm.h +++ b/sound/arm/pxa2xx-pcm.h | |||
@@ -9,12 +9,11 @@ | |||
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | #include <mach/dma.h> | ||
13 | 12 | ||
14 | struct pxa2xx_runtime_data { | 13 | struct pxa2xx_runtime_data { |
15 | int dma_ch; | 14 | int dma_ch; |
16 | struct snd_dmaengine_dai_dma_data *params; | 15 | struct snd_dmaengine_dai_dma_data *params; |
17 | pxa_dma_desc *dma_desc_array; | 16 | struct pxa_dma_desc *dma_desc_array; |
18 | dma_addr_t dma_desc_array_phys; | 17 | dma_addr_t dma_desc_array_phys; |
19 | }; | 18 | }; |
20 | 19 | ||
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index a3119a00d8fa..9b19ee70291f 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -34,8 +34,6 @@ | |||
34 | #include <sound/pxa2xx-lib.h> | 34 | #include <sound/pxa2xx-lib.h> |
35 | #include <sound/dmaengine_pcm.h> | 35 | #include <sound/dmaengine_pcm.h> |
36 | 36 | ||
37 | #include <mach/hardware.h> | ||
38 | |||
39 | #include "../../arm/pxa2xx-pcm.h" | 37 | #include "../../arm/pxa2xx-pcm.h" |
40 | #include "pxa-ssp.h" | 38 | #include "pxa-ssp.h" |
41 | 39 | ||
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index d58b09f4f7a4..42f2f0175981 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/dmaengine.h> | 15 | #include <linux/dmaengine.h> |
16 | #include <linux/of.h> | 16 | #include <linux/of.h> |
17 | 17 | ||
18 | #include <mach/dma.h> | ||
19 | |||
18 | #include <sound/core.h> | 20 | #include <sound/core.h> |
19 | #include <sound/soc.h> | 21 | #include <sound/soc.h> |
20 | #include <sound/pxa2xx-lib.h> | 22 | #include <sound/pxa2xx-lib.h> |