Commit 26d890f0 authored by Tomoya MORINAGA's avatar Tomoya MORINAGA Committed by Vinod Koul

pch_dma: set the number of array correctly

set the number of array correctly.
Signed-off-by: default avatarTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent c5a9f9d0
...@@ -82,7 +82,7 @@ struct pch_dma_regs { ...@@ -82,7 +82,7 @@ struct pch_dma_regs {
u32 dma_sts1; u32 dma_sts1;
u32 reserved2; u32 reserved2;
u32 reserved3; u32 reserved3;
struct pch_dma_desc_regs desc[0]; struct pch_dma_desc_regs desc[MAX_CHAN_NR];
}; };
struct pch_dma_desc { struct pch_dma_desc {
...@@ -124,7 +124,7 @@ struct pch_dma { ...@@ -124,7 +124,7 @@ struct pch_dma {
struct pci_pool *pool; struct pci_pool *pool;
struct pch_dma_regs regs; struct pch_dma_regs regs;
struct pch_dma_desc_regs ch_regs[MAX_CHAN_NR]; struct pch_dma_desc_regs ch_regs[MAX_CHAN_NR];
struct pch_dma_chan channels[0]; struct pch_dma_chan channels[MAX_CHAN_NR];
}; };
#define PCH_DMA_CTL0 0x00 #define PCH_DMA_CTL0 0x00
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment