dma: 调用spin_lock_init,正确初始化dma的lock
author黄涛 <huangtao@rock-chips.com>
Fri, 13 Aug 2010 06:08:50 +0000 (14:08 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 13 Aug 2010 06:08:50 +0000 (14:08 +0800)
arch/arm/mach-rk2818/dma.c

index d9cdde936a0bb0b21a0af9d4327b32759ab2f1ee..81b945c03c4c0995d67aa57481c35090b2af3266 100644 (file)
@@ -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 */