File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -959,14 +959,12 @@ static void via_sdc_timeout(struct timer_list *t)
959
959
spin_unlock_irqrestore (& sdhost -> lock , flags );
960
960
}
961
961
962
- static void via_sdc_tasklet_finish (unsigned long param )
962
+ static void via_sdc_tasklet_finish (struct tasklet_struct * t )
963
963
{
964
- struct via_crdr_mmc_host * host ;
964
+ struct via_crdr_mmc_host * host = from_tasklet ( host , t , finish_tasklet ) ;
965
965
unsigned long flags ;
966
966
struct mmc_request * mrq ;
967
967
968
- host = (struct via_crdr_mmc_host * )param ;
969
-
970
968
spin_lock_irqsave (& host -> lock , flags );
971
969
972
970
del_timer (& host -> timer );
@@ -1050,8 +1048,7 @@ static void via_init_mmc_host(struct via_crdr_mmc_host *host)
1050
1048
1051
1049
INIT_WORK (& host -> carddet_work , via_sdc_card_detect );
1052
1050
1053
- tasklet_init (& host -> finish_tasklet , via_sdc_tasklet_finish ,
1054
- (unsigned long )host );
1051
+ tasklet_setup (& host -> finish_tasklet , via_sdc_tasklet_finish );
1055
1052
1056
1053
addrbase = host -> sdhc_mmiobase ;
1057
1054
writel (0x0 , addrbase + VIA_CRDR_SDINTMASK );
You can’t perform that action at this time.
0 commit comments