[alsa-devel] [PATCH] asoc: multi-component: mpc8610: fix typo in mpc8610_hpcd_data

Timur Tabi timur at freescale.com
Thu Jul 15 23:55:00 CEST 2010


The dma_id[] variable in struct mpc8610_hpcd_data is a zero-length
array, when it should be of length 2.

Signed-off-by: Timur Tabi <timur at freescale.com>
---

Liam, please squash this into your repository.

 sound/soc/fsl/mpc8610_hpcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index 81ab639..8665cc2 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -37,7 +37,7 @@ struct mpc8610_hpcd_data {
 	unsigned int cpu_clk_direction;
 	unsigned int clk_frequency;
 	unsigned int ssi_id;		/* 0 = SSI1, 1 = SSI2, etc */
-	unsigned int dma_id[0];		/* 0 = DMA1, 1 = DMA2, etc */
+	unsigned int dma_id[2];		/* 0 = DMA1, 1 = DMA2, etc */
 	unsigned int dma_channel_id[2]; /* 0 = ch 0, 1 = ch 1, etc*/
 	char dai_name[32];
 };
-- 
1.7.0.1




More information about the Alsa-devel mailing list