diff options
author | Daniel Mack <zonque@gmail.com> | 2013-08-21 14:08:58 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-25 22:04:53 +0530 |
commit | 023bf55f1c21214cab411cf767d53c8717de6d21 (patch) | |
tree | e7e751b6169dfb8b987a71e297a98af427e5068f /drivers/dma | |
parent | 50440d74aae31893f0c901b9effbd52b43d3ce63 (diff) | |
download | linux-023bf55f1c21214cab411cf767d53c8717de6d21.tar.gz linux-023bf55f1c21214cab411cf767d53c8717de6d21.tar.bz2 linux-023bf55f1c21214cab411cf767d53c8717de6d21.zip |
dma: mmp_pdma: set DMA_PRIVATE
As the driver now has its own xlate function and makes use of the
dma_get_slave_channel(), we need to manually set the DMA_PRIVATE flags.
Drivers which rely on of_dma_simple_xlate() do implicitly the same by
going through __dma_request_channel().
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/mmp_pdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index f0e6d7d49b06..ff8d7827f8cb 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c @@ -985,6 +985,7 @@ static int mmp_pdma_probe(struct platform_device *op) dma_cap_set(DMA_SLAVE, pdev->device.cap_mask); dma_cap_set(DMA_MEMCPY, pdev->device.cap_mask); dma_cap_set(DMA_CYCLIC, pdev->device.cap_mask); + dma_cap_set(DMA_PRIVATE, pdev->device.cap_mask); pdev->device.dev = &op->dev; pdev->device.device_alloc_chan_resources = mmp_pdma_alloc_chan_resources; pdev->device.device_free_chan_resources = mmp_pdma_free_chan_resources; |