From: 黄涛 Date: Fri, 13 Aug 2010 06:08:50 +0000 (+0800) Subject: dma: 调用spin_lock_init,正确初始化dma的lock X-Git-Tag: firefly_0821_release~11269 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b1c6d7270ea3d005beb3200475d36b9f8cb16ddd;p=firefly-linux-kernel-4.4.55.git dma: 调用spin_lock_init,正确初始化dma的lock --- diff --git a/arch/arm/mach-rk2818/dma.c b/arch/arm/mach-rk2818/dma.c index d9cdde936a0b..81b945c03c4c 100644 --- a/arch/arm/mach-rk2818/dma.c +++ b/arch/arm/mach-rk2818/dma.c @@ -726,6 +726,7 @@ static int __init rk28_dma_init(void) rk2818_dma[i].residue = 0; rk2818_dma[i].length = 0; rk2818_dma[i].tasklet_flag = 0; + spin_lock_init(&rk2818_dma[i].lock); } /* clear all interrupts */