File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1907,8 +1907,6 @@ static int udma_alloc_chan_resources(struct dma_chan *chan)
1907
1907
1908
1908
udma_reset_rings (uc );
1909
1909
1910
- INIT_DELAYED_WORK_ONSTACK (& uc -> tx_drain .work ,
1911
- udma_check_tx_completion );
1912
1910
return 0 ;
1913
1911
1914
1912
err_irq_free :
@@ -3020,7 +3018,6 @@ static void udma_free_chan_resources(struct dma_chan *chan)
3020
3018
}
3021
3019
3022
3020
cancel_delayed_work_sync (& uc -> tx_drain .work );
3023
- destroy_delayed_work_on_stack (& uc -> tx_drain .work );
3024
3021
3025
3022
if (uc -> irq_num_ring > 0 ) {
3026
3023
free_irq (uc -> irq_num_ring , uc );
@@ -3712,6 +3709,7 @@ static int udma_probe(struct platform_device *pdev)
3712
3709
tasklet_init (& uc -> vc .task , udma_vchan_complete ,
3713
3710
(unsigned long )& uc -> vc );
3714
3711
init_completion (& uc -> teardown_completed );
3712
+ INIT_DELAYED_WORK (& uc -> tx_drain .work , udma_check_tx_completion );
3715
3713
}
3716
3714
3717
3715
ret = dma_async_device_register (& ud -> ddev );
You can’t perform that action at this time.
0 commit comments