Skip to content

Commit c36dd04

Browse files
esmilstorulf
authored andcommitted
mmc: tifm_sd: Use new tasklet API
This converts the driver to use the new tasklet API introduced in commit 12cc923 ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent ddf116f commit c36dd04

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/mmc/host/tifm_sd.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,9 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
731731
mmc_request_done(mmc, mrq);
732732
}
733733

734-
static void tifm_sd_end_cmd(unsigned long data)
734+
static void tifm_sd_end_cmd(struct tasklet_struct *t)
735735
{
736-
struct tifm_sd *host = (struct tifm_sd*)data;
736+
struct tifm_sd *host = from_tasklet(host, t, finish_tasklet);
737737
struct tifm_dev *sock = host->dev;
738738
struct mmc_host *mmc = tifm_get_drvdata(sock);
739739
struct mmc_request *mrq;
@@ -968,8 +968,7 @@ static int tifm_sd_probe(struct tifm_dev *sock)
968968
*/
969969
mmc->max_busy_timeout = TIFM_MMCSD_REQ_TIMEOUT_MS;
970970

971-
tasklet_init(&host->finish_tasklet, tifm_sd_end_cmd,
972-
(unsigned long)host);
971+
tasklet_setup(&host->finish_tasklet, tifm_sd_end_cmd);
973972
timer_setup(&host->timer, tifm_sd_abort, 0);
974973

975974
mmc->ops = &tifm_sd_ops;

0 commit comments

Comments
 (0)