Skip to content

Commit 6078df1

Browse files
esmilstorulf
authored andcommitted
mmc: dw_mmc: 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 a1149c3 commit 6078df1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mmc/host/dw_mmc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,9 +1952,9 @@ static bool dw_mci_clear_pending_data_complete(struct dw_mci *host)
19521952
return true;
19531953
}
19541954

1955-
static void dw_mci_tasklet_func(unsigned long priv)
1955+
static void dw_mci_tasklet_func(struct tasklet_struct *t)
19561956
{
1957-
struct dw_mci *host = (struct dw_mci *)priv;
1957+
struct dw_mci *host = from_tasklet(host, t, tasklet);
19581958
struct mmc_data *data;
19591959
struct mmc_command *cmd;
19601960
struct mmc_request *mrq;
@@ -3308,7 +3308,7 @@ int dw_mci_probe(struct dw_mci *host)
33083308
else
33093309
host->fifo_reg = host->regs + DATA_240A_OFFSET;
33103310

3311-
tasklet_init(&host->tasklet, dw_mci_tasklet_func, (unsigned long)host);
3311+
tasklet_setup(&host->tasklet, dw_mci_tasklet_func);
33123312
ret = devm_request_irq(host->dev, host->irq, dw_mci_interrupt,
33133313
host->irq_flags, "dw-mci", host);
33143314
if (ret)

0 commit comments

Comments
 (0)