at_hdmac: bugfix for enabling channel irq
authorNikolaus Voss <n.voss@weinmann.de>
Tue, 17 Jan 2012 09:28:33 +0000 (10:28 +0100)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 31 Jan 2012 03:39:04 +0000 (09:09 +0530)
commitbda3a47c886664e86ee14eb79e9072b9e341f575
tree57f220d3f7cf54d05273582aac2da4d4e4be6aa9
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
at_hdmac: bugfix for enabling channel irq

commit 463894705e4089d0ff69e7d877312d496ac70e5b deleted redundant
chan_id and chancnt initialization in dma drivers as this is done
in dma_async_device_register().

However, atc_enable_irq() relied on chan_id set before registering
the device, what left only channel 0 functional for this driver.

This patch introduces atc_enable/disable_chan_irq() as a variant
of atc_enable/disable_irq() with the channel as explicit argument.

Signed-off-by: Nikolaus Voss <n.voss@weinmann.de>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h