File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -731,9 +731,9 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
731
731
mmc_request_done (mmc , mrq );
732
732
}
733
733
734
- static void tifm_sd_end_cmd (unsigned long data )
734
+ static void tifm_sd_end_cmd (struct tasklet_struct * t )
735
735
{
736
- struct tifm_sd * host = ( struct tifm_sd * ) data ;
736
+ struct tifm_sd * host = from_tasklet ( host , t , finish_tasklet ) ;
737
737
struct tifm_dev * sock = host -> dev ;
738
738
struct mmc_host * mmc = tifm_get_drvdata (sock );
739
739
struct mmc_request * mrq ;
@@ -968,8 +968,7 @@ static int tifm_sd_probe(struct tifm_dev *sock)
968
968
*/
969
969
mmc -> max_busy_timeout = TIFM_MMCSD_REQ_TIMEOUT_MS ;
970
970
971
- tasklet_init (& host -> finish_tasklet , tifm_sd_end_cmd ,
972
- (unsigned long )host );
971
+ tasklet_setup (& host -> finish_tasklet , tifm_sd_end_cmd );
973
972
timer_setup (& host -> timer , tifm_sd_abort , 0 );
974
973
975
974
mmc -> ops = & tifm_sd_ops ;
You can’t perform that action at this time.
0 commit comments