*/
-spinlock_t dma_spin_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(dma_spin_lock);
/*
* If our port doesn't define this it has no PC like DMA
};
static struct dma_chan dma_chan_busy[MAX_DMA_CHANNELS] = {
- { 0, 0 },
- { 0, 0 },
- { 0, 0 },
- { 0, 0 },
- { 1, "cascade" },
- { 0, 0 },
- { 0, 0 },
- { 0, 0 }
+ [4] = { 1, "cascade" },
};