/* Handle IRQ for a particular DMA channel (0..31)  */
static void kinetis_dma_channel_isr(int ch)
/* Handle IRQ for a particular DMA channel (0..31)  */
static void kinetis_dma_channel_isr(int ch)
{
	unsigned long fl;
	spin_lock_irqsave(&dma_ch[ch].irq_lock, fl);
	if (dma_ch[ch].irq_handler) {
		dma_ch[ch].irq_handler(ch, 0, dma_ch[ch].irq_data);
	} else {
		pr_warning("Spurious IRQ for DMA channel %d\n", ch);
	}
	spin_unlock_irqrestore(&dma_ch[ch].irq_lock, fl);
	KINETIS_DMA->cint = ch << KINETIS_DMA_CINT_CINT_BITS;
}