ASoC: pxa: remove mach header dependency
authorArnd Bergmann <arnd@arndb.de>
Sun, 4 May 2014 03:25:21 +0000 (11:25 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 20 May 2014 22:14:49 +0000 (23:14 +0100)
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>
sound/arm/pxa2xx-pcm.c
sound/arm/pxa2xx-pcm.h
sound/soc/pxa/pxa-ssp.c
sound/soc/pxa/pxa2xx-pcm.c

index e6c727b317fbd8fa5a1d33fef7133aa601eeddd7..83be8e3f095ef46fb58d7567c84c5cb1b0db1b73 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/dma-mapping.h>
 #include <linux/dmaengine.h>
 
+#include <mach/dma.h>
+
 #include <sound/core.h>
 #include <sound/pxa2xx-lib.h>
 #include <sound/dmaengine_pcm.h>
index 2a8fc08d52a173686fa9e946f2f3932179a64812..00330985beec1f7ac0e07adb076904f98a35d51a 100644 (file)
@@ -9,12 +9,11 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <mach/dma.h>
 
 struct pxa2xx_runtime_data {
        int dma_ch;
        struct snd_dmaengine_dai_dma_data *params;
-       pxa_dma_desc *dma_desc_array;
+       struct pxa_dma_desc *dma_desc_array;
        dma_addr_t dma_desc_array_phys;
 };
 
index a3119a00d8fac8ef8295ef3593f16a60c2603aab..9b19ee70291ffc48ea8f9aaafd025aeb5aef5922 100644 (file)
@@ -34,8 +34,6 @@
 #include <sound/pxa2xx-lib.h>
 #include <sound/dmaengine_pcm.h>
 
-#include <mach/hardware.h>
-
 #include "../../arm/pxa2xx-pcm.h"
 #include "pxa-ssp.h"
 
index d58b09f4f7a426dcba4e7a82c26434161dbe124e..42f2f0175981ad5d3867b88ac64d14e2b3dc5c99 100644 (file)
@@ -15,6 +15,8 @@
 #include <linux/dmaengine.h>
 #include <linux/of.h>
 
+#include <mach/dma.h>
+
 #include <sound/core.h>
 #include <sound/soc.h>
 #include <sound/pxa2xx-lib.h>