summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Wei <wei.zhang@freescale.com>2008-03-14 01:45:28 +0100
committerDan Williams <dan.j.williams@intel.com>2008-03-13 18:57:07 +0100
commit9b941c6660bae673e27c207f1d20d98ef8ecd450 (patch)
treee34aa803ae33e745e0c013dc35ebafb8d9bcca55
parentfsldma: Fix fsldma.c warning messages when it's compiled under PPC64. (diff)
downloadlinux-9b941c6660bae673e27c207f1d20d98ef8ecd450.tar.xz
linux-9b941c6660bae673e27c207f1d20d98ef8ecd450.zip
dmaengine: Fix a bug about BUG_ON() on DMA engine capability DMA_INTERRUPT.
The device->device_prep_dma_interrupt function is used by DMA_INTERRUPT capability, not DMA_ZERO_SUM. Signed-off-by: Zhang Wei <wei.zhang@freescale.com> Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--drivers/dma/dmaengine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index 29965231b912..8db0e7f9d3f4 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -357,7 +357,7 @@ int dma_async_device_register(struct dma_device *device)
!device->device_prep_dma_zero_sum);
BUG_ON(dma_has_cap(DMA_MEMSET, device->cap_mask) &&
!device->device_prep_dma_memset);
- BUG_ON(dma_has_cap(DMA_ZERO_SUM, device->cap_mask) &&
+ BUG_ON(dma_has_cap(DMA_INTERRUPT, device->cap_mask) &&
!device->device_prep_dma_interrupt);
BUG_ON(!device->device_alloc_chan_resources);