Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Huang Shijie and committed by
Vinod Koul
e8690fc2 f2d04c32

-7
-7
drivers/dma/imx-sdma.c
··· 243 243 * @event_id1 for channels that use 2 events 244 244 * @word_size peripheral access size 245 245 * @buf_tail ID of the buffer that was processed 246 - * @done channel completion 247 246 * @num_bd max NUM_BD. number of descriptors currently handling 248 247 */ 249 248 struct sdma_channel { ··· 254 255 unsigned int event_id1; 255 256 enum dma_slave_buswidth word_size; 256 257 unsigned int buf_tail; 257 - struct completion done; 258 258 unsigned int num_bd; 259 259 struct sdma_buffer_descriptor *bd; 260 260 dma_addr_t bd_phys; ··· 545 547 { 546 548 struct sdma_channel *sdmac = (struct sdma_channel *) data; 547 549 548 - complete(&sdmac->done); 549 - 550 550 if (sdmac->flags & IMX_DMA_SG_LOOP) 551 551 sdma_handle_channel_loop(sdmac); 552 552 else ··· 808 812 sdma->channel_control[channel].current_bd_ptr = sdmac->bd_phys; 809 813 810 814 sdma_set_channel_priority(sdmac, MXC_SDMA_DEFAULT_PRIORITY); 811 - 812 - init_completion(&sdmac->done); 813 - 814 815 return 0; 815 816 out: 816 817