summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/dma-pl081.c
diff options
context:
space:
mode:
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-06-17 19:14:42 +0000
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-06-17 19:14:42 +0000
commit69028d5d31384a0a97bd42081cacb01eb5d52793 (patch)
tree168f782a2bbdf719eeeeb08ee217b9c5c2c1f096 /firmware/target/arm/as3525/dma-pl081.c
parenta9b30ee002d828f3f5e8f77ce6d132bb353ed31f (diff)
downloadrockbox-69028d5d31384a0a97bd42081cacb01eb5d52793.tar.gz
rockbox-69028d5d31384a0a97bd42081cacb01eb5d52793.zip
sd-as3525 was calling dma_release() without calling dma_retain() first, if
no card is in the sd slot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26896 a1c6a512-1295-4272-9138-f99709370657
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)