summaryrefslogtreecommitdiffstats
path: root/drivers/dma/hisi_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/hisi_dma.c')
-rw-r--r--drivers/dma/hisi_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/hisi_dma.c b/drivers/dma/hisi_dma.c
index c1350a36fd..4c47bff810 100644
--- a/drivers/dma/hisi_dma.c
+++ b/drivers/dma/hisi_dma.c
@@ -163,7 +163,7 @@ struct hisi_dma_dev {
u32 chan_depth;
enum hisi_dma_reg_layout reg_layout;
void __iomem *queue_base; /* queue region start of register */
- struct hisi_dma_chan chan[];
+ struct hisi_dma_chan chan[] __counted_by(chan_num);
};
#ifdef CONFIG_DEBUG_FS