Skip to content

Commit e8690fc

Browse files
Huang ShijieVinod Koul
authored andcommitted
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>
1 parent f2d04c3 commit e8690fc

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎drivers/dma/imx-sdma.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ struct sdma_engine;
243243
* @event_id1 for channels that use 2 events
244244
* @word_size peripheral access size
245245
* @buf_tail ID of the buffer that was processed
246-
* @done channel completion
247246
* @num_bd max NUM_BD. number of descriptors currently handling
248247
*/
249248
struct sdma_channel {
@@ -255,7 +254,6 @@ struct sdma_channel {
255254
unsigned int event_id1;
256255
enum dma_slave_buswidth word_size;
257256
unsigned int buf_tail;
258-
struct completion done;
259257
unsigned int num_bd;
260258
struct sdma_buffer_descriptor *bd;
261259
dma_addr_t bd_phys;
@@ -547,8 +545,6 @@ static void sdma_tasklet(unsigned long data)
547545
{
548546
struct sdma_channel *sdmac = (struct sdma_channel *) data;
549547

550-
complete(&sdmac->done);
551-
552548
if (sdmac->flags & IMX_DMA_SG_LOOP)
553549
sdma_handle_channel_loop(sdmac);
554550
else
@@ -812,9 +808,6 @@ static int sdma_request_channel(struct sdma_channel *sdmac)
812808
sdma->channel_control[channel].current_bd_ptr = sdmac->bd_phys;
813809

814810
sdma_set_channel_priority(sdmac, MXC_SDMA_DEFAULT_PRIORITY);
815-
816-
init_completion(&sdmac->done);
817-
818811
return 0;
819812
out:
820813

0 commit comments

Comments
 (0)