|
@@ -130,10 +130,9 @@ ltq_dma_alloc(struct ltq_dma_channel *ch)
|
|
|
unsigned long flags;
|
|
|
|
|
|
ch->desc = 0;
|
|
|
- ch->desc_base = dma_alloc_coherent(NULL,
|
|
|
+ ch->desc_base = dma_zalloc_coherent(NULL,
|
|
|
LTQ_DESC_NUM * LTQ_DESC_SIZE,
|
|
|
&ch->phys, GFP_ATOMIC);
|
|
|
- memset(ch->desc_base, 0, LTQ_DESC_NUM * LTQ_DESC_SIZE);
|
|
|
|
|
|
spin_lock_irqsave(<q_dma_lock, flags);
|
|
|
ltq_dma_w32(ch->nr, LTQ_DMA_CS);
|