Skip to contentSkip to conversation

asoc: multi-component: mpc8610: fix typo in mpc8610_hpcd_data

PATCH Applied Timur Tabi 3 participants 3 messages Jul 15, 2010 – Jul 17, 2010

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 asoc: multi-component: mpc8610: fix typo in mpc8610_hpcd_data

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

---

Liam, please squash this into your repository.

 sound/soc/fsl/mpc8610_hpcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/fsl/mpc8610_hpcd.c +1 -1
index 81ab639..8665cc2 100644
@@ -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];
 };
Signature · 1 line
1.7.0.1
#2 lore raw
In reply to Timur Tabi
Quoted 8 lines · Timur Tabi

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

---

Liam, please squash this into your repository.

Thanks

Applied

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk