aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-07-05 03:50:55 -0400
committerVinod Koul <vinod.koul@intel.com>2013-08-19 04:46:19 -0400
commite8690fc2bce24f0a96a0cfe8e1ffbfbd59438657 (patch)
tree1329332586a396088973832bc9f9d95a76942c97
parentf2d04c32092635256bdad4e868a3590ba94daf00 (diff)
dma: imx-sdma: remove the unused completion
After the patch: "2ccaef0 dma: imx-sdma: make channel0 operations atomic", the "done" completion is not used any more. Just remove it. Signed-off-by: Huang Shijie <b32955@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/imx-sdma.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index b331ebb4d1d5..960367d95895 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -243,7 +243,6 @@ struct sdma_engine;
243 * @event_id1 for channels that use 2 events 243 * @event_id1 for channels that use 2 events
244 * @word_size peripheral access size 244 * @word_size peripheral access size
245 * @buf_tail ID of the buffer that was processed 245 * @buf_tail ID of the buffer that was processed
246 * @done channel completion
247 * @num_bd max NUM_BD. number of descriptors currently handling 246 * @num_bd max NUM_BD. number of descriptors currently handling
248 */ 247 */
249struct sdma_channel { 248struct sdma_channel {
@@ -255,7 +254,6 @@ struct sdma_channel {
255 unsigned int event_id1; 254 unsigned int event_id1;
256 enum dma_slave_buswidth word_size; 255 enum dma_slave_buswidth word_size;
257 unsigned int buf_tail; 256 unsigned int buf_tail;
258 struct completion done;
259 unsigned int num_bd; 257 unsigned int num_bd;
260 struct sdma_buffer_descriptor *bd; 258 struct sdma_buffer_descriptor *bd;
261 dma_addr_t bd_phys; 259 dma_addr_t bd_phys;
@@ -547,8 +545,6 @@ static void sdma_tasklet(unsigned long data)
547{ 545{
548 struct sdma_channel *sdmac = (struct sdma_channel *) data; 546 struct sdma_channel *sdmac = (struct sdma_channel *) data;
549 547
550 complete(&sdmac->done);
551
552 if (sdmac->flags & IMX_DMA_SG_LOOP) 548 if (sdmac->flags & IMX_DMA_SG_LOOP)
553 sdma_handle_channel_loop(sdmac); 549 sdma_handle_channel_loop(sdmac);
554 else 550 else
@@ -812,9 +808,6 @@ static int sdma_request_channel(struct sdma_channel *sdmac)
812 sdma->channel_control[channel].current_bd_ptr = sdmac->bd_phys; 808 sdma->channel_control[channel].current_bd_ptr = sdmac->bd_phys;
813 809
814 sdma_set_channel_priority(sdmac, MXC_SDMA_DEFAULT_PRIORITY); 810 sdma_set_channel_priority(sdmac, MXC_SDMA_DEFAULT_PRIORITY);
815
816 init_completion(&sdmac->done);
817
818 return 0; 811 return 0;
819out: 812out:
820 813