Skip to content

Commit b452814

Browse files
arndbbroonie
authored andcommitted
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>
1 parent 482b91c commit b452814

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎sound/arm/pxa2xx-pcm.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <linux/dma-mapping.h>
1515
#include <linux/dmaengine.h>
1616

17+
#include <mach/dma.h>
18+
1719
#include <sound/core.h>
1820
#include <sound/pxa2xx-lib.h>
1921
#include <sound/dmaengine_pcm.h>

‎sound/arm/pxa2xx-pcm.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
* it under the terms of the GNU General Public License version 2 as
1010
* published by the Free Software Foundation.
1111
*/
12-
#include <mach/dma.h>
1312

1413
struct pxa2xx_runtime_data {
1514
int dma_ch;
1615
struct snd_dmaengine_dai_dma_data *params;
17-
pxa_dma_desc *dma_desc_array;
16+
struct pxa_dma_desc *dma_desc_array;
1817
dma_addr_t dma_desc_array_phys;
1918
};
2019

‎sound/soc/pxa/pxa-ssp.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
#include <sound/pxa2xx-lib.h>
3535
#include <sound/dmaengine_pcm.h>
3636

37-
#include <mach/hardware.h>
38-
3937
#include "../../arm/pxa2xx-pcm.h"
4038
#include "pxa-ssp.h"
4139

‎sound/soc/pxa/pxa2xx-pcm.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <linux/dmaengine.h>
1616
#include <linux/of.h>
1717

18+
#include <mach/dma.h>
19+
1820
#include <sound/core.h>
1921
#include <sound/soc.h>
2022
#include <sound/pxa2xx-lib.h>

0 commit comments

Comments
 (0)