@@ -81,9 +81,9 @@ static void uniphier_sd_dma_endisable(struct tmio_mmc_host *host, int enable)
81
81
}
82
82
83
83
/* external DMA engine */
84
- static void uniphier_sd_external_dma_issue (unsigned long arg )
84
+ static void uniphier_sd_external_dma_issue (struct tasklet_struct * t )
85
85
{
86
- struct tmio_mmc_host * host = ( void * ) arg ;
86
+ struct tmio_mmc_host * host = from_tasklet ( host , t , dma_issue ) ;
87
87
struct uniphier_sd_priv * priv = uniphier_sd_priv (host );
88
88
89
89
uniphier_sd_dma_endisable (host , 1 );
@@ -190,8 +190,7 @@ static void uniphier_sd_external_dma_request(struct tmio_mmc_host *host,
190
190
host -> chan_rx = chan ;
191
191
host -> chan_tx = chan ;
192
192
193
- tasklet_init (& host -> dma_issue , uniphier_sd_external_dma_issue ,
194
- (unsigned long )host );
193
+ tasklet_setup (& host -> dma_issue , uniphier_sd_external_dma_issue );
195
194
}
196
195
197
196
static void uniphier_sd_external_dma_release (struct tmio_mmc_host * host )
@@ -228,9 +227,9 @@ static const struct tmio_mmc_dma_ops uniphier_sd_external_dma_ops = {
228
227
.dataend = uniphier_sd_external_dma_dataend ,
229
228
};
230
229
231
- static void uniphier_sd_internal_dma_issue (unsigned long arg )
230
+ static void uniphier_sd_internal_dma_issue (struct tasklet_struct * t )
232
231
{
233
- struct tmio_mmc_host * host = ( void * ) arg ;
232
+ struct tmio_mmc_host * host = from_tasklet ( host , t , dma_issue ) ;
234
233
unsigned long flags ;
235
234
236
235
spin_lock_irqsave (& host -> lock , flags );
@@ -309,8 +308,7 @@ static void uniphier_sd_internal_dma_request(struct tmio_mmc_host *host,
309
308
310
309
host -> chan_tx = (void * )0xdeadbeaf ;
311
310
312
- tasklet_init (& host -> dma_issue , uniphier_sd_internal_dma_issue ,
313
- (unsigned long )host );
311
+ tasklet_setup (& host -> dma_issue , uniphier_sd_internal_dma_issue );
314
312
}
315
313
316
314
static void uniphier_sd_internal_dma_release (struct tmio_mmc_host * host )
0 commit comments