summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/spdif.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-04-08 13:41:04 +0200
committerMark Brown <broonie@linaro.org>2014-04-08 13:51:57 +0200
commit71e5222cbea124d737e1fe7de8e255253c12cd29 (patch)
tree3a2062d7ca89446e23a97f3b778b49b5537a3d6c /sound/soc/samsung/spdif.c
parentMerge remote-tracking branches 'asoc/topic/tdm' and 'asoc/topic/tegra' into a... (diff)
downloadlinux-71e5222cbea124d737e1fe7de8e255253c12cd29.tar.xz
linux-71e5222cbea124d737e1fe7de8e255253c12cd29.zip
ASoC: samsung: Fix build on multiplatform
PCM and S/PDIF drivers referenced mach headers for a trivial data structure. This caused build errors on multiplatform builds as machine headers are not accessible from driver files. Move the data structure definition to the driver header and remove the dependency. While at it rename the structure to avoid multiple definition errors as the same structure is also used by the platform code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/samsung/spdif.c')
-rw-r--r--sound/soc/samsung/spdif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c
index 28487dcc4538..cfe63b7bcc9f 100644
--- a/sound/soc/samsung/spdif.c
+++ b/sound/soc/samsung/spdif.c
@@ -18,7 +18,6 @@
#include <sound/pcm_params.h>
#include <linux/platform_data/asoc-s3c.h>
-#include <mach/dma.h>
#include "dma.h"
#include "spdif.h"
@@ -94,7 +93,7 @@ struct samsung_spdif_info {
struct s3c_dma_params *dma_playback;
};
-static struct s3c2410_dma_client spdif_dma_client_out = {
+static struct s3c_dma_client spdif_dma_client_out = {
.name = "S/PDIF Stereo out",
};