diff options
author | Zhang Wei <wei.zhang@freescale.com> | 2008-03-14 03:45:28 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-03-13 20:57:07 +0300 |
commit | 9b941c6660bae673e27c207f1d20d98ef8ecd450 (patch) | |
tree | e34aa803ae33e745e0c013dc35ebafb8d9bcca55 /drivers/dma | |
parent | 56822843ff99c88c778a614851328fcbb1503d10 (diff) | |
download | linux-9b941c6660bae673e27c207f1d20d98ef8ecd450.tar.xz |
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/dmaengine.c | 2 |
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); |