summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/dma-pl081.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/dma-pl081.c')
-rw-r--r--firmware/target/arm/as3525/dma-pl081.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/dma-pl081.c b/firmware/target/arm/as3525/dma-pl081.c
index 43f6162e38..149488c7d1 100644
--- a/firmware/target/arm/as3525/dma-pl081.c
+++ b/firmware/target/arm/as3525/dma-pl081.c
@@ -45,6 +45,8 @@ void dma_release(void)
45 DMAC_CONFIGURATION &= ~(1<<0); 45 DMAC_CONFIGURATION &= ~(1<<0);
46 CGU_PERI &= ~CGU_DMA_CLOCK_ENABLE; 46 CGU_PERI &= ~CGU_DMA_CLOCK_ENABLE;
47 } 47 }
48 if (dma_used < 0)
49 panicf("dma_used < 0!");
48} 50}
49 51
50void dma_init(void) 52void dma_init(void)