diff options
author | Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com> | 2011-02-18 05:31:21 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-02-26 15:48:33 +0100 |
commit | 26d890f0d09fd58f7194aad651e86283cb9e6574 (patch) | |
tree | 28cc2ba40f6d8d1e106f27662d49edf430a0a884 /drivers/dma | |
parent | pch_dma: fix kernel error issue (diff) | |
download | linux-26d890f0d09fd58f7194aad651e86283cb9e6574.tar.xz linux-26d890f0d09fd58f7194aad651e86283cb9e6574.zip |
pch_dma: set the number of array correctly
set the number of array correctly.
Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pch_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index bf2ddd601dc2..b1dfba7e37b4 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c @@ -82,7 +82,7 @@ struct pch_dma_regs { u32 dma_sts1; u32 reserved2; u32 reserved3; - struct pch_dma_desc_regs desc[0]; + struct pch_dma_desc_regs desc[MAX_CHAN_NR]; }; struct pch_dma_desc { @@ -124,7 +124,7 @@ struct pch_dma { struct pci_pool *pool; struct pch_dma_regs regs; 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 |