mmc: uniphier-sd: Use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f1c ("tasklet: Introduce new initialization API")

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Link: https://lore.kernel.org/r/20210204151847.91353-8-kernel@esmil.dk
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Emil Renner Berthing 2021-02-04 16:18:45 +01:00 committed by Ulf Hansson
parent c36dd04282
commit 39d2969d7b

View file

@ -81,9 +81,9 @@ static void uniphier_sd_dma_endisable(struct tmio_mmc_host *host, int enable)
} }
/* external DMA engine */ /* external DMA engine */
static void uniphier_sd_external_dma_issue(unsigned long arg) static void uniphier_sd_external_dma_issue(struct tasklet_struct *t)
{ {
struct tmio_mmc_host *host = (void *)arg; struct tmio_mmc_host *host = from_tasklet(host, t, dma_issue);
struct uniphier_sd_priv *priv = uniphier_sd_priv(host); struct uniphier_sd_priv *priv = uniphier_sd_priv(host);
uniphier_sd_dma_endisable(host, 1); uniphier_sd_dma_endisable(host, 1);
@ -190,8 +190,7 @@ static void uniphier_sd_external_dma_request(struct tmio_mmc_host *host,
host->chan_rx = chan; host->chan_rx = chan;
host->chan_tx = chan; host->chan_tx = chan;
tasklet_init(&host->dma_issue, uniphier_sd_external_dma_issue, tasklet_setup(&host->dma_issue, uniphier_sd_external_dma_issue);
(unsigned long)host);
} }
static void uniphier_sd_external_dma_release(struct tmio_mmc_host *host) 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 = {
.dataend = uniphier_sd_external_dma_dataend, .dataend = uniphier_sd_external_dma_dataend,
}; };
static void uniphier_sd_internal_dma_issue(unsigned long arg) static void uniphier_sd_internal_dma_issue(struct tasklet_struct *t)
{ {
struct tmio_mmc_host *host = (void *)arg; struct tmio_mmc_host *host = from_tasklet(host, t, dma_issue);
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&host->lock, flags); spin_lock_irqsave(&host->lock, flags);
@ -309,8 +308,7 @@ static void uniphier_sd_internal_dma_request(struct tmio_mmc_host *host,
host->chan_tx = (void *)0xdeadbeaf; host->chan_tx = (void *)0xdeadbeaf;
tasklet_init(&host->dma_issue, uniphier_sd_internal_dma_issue, tasklet_setup(&host->dma_issue, uniphier_sd_internal_dma_issue);
(unsigned long)host);
} }
static void uniphier_sd_internal_dma_release(struct tmio_mmc_host *host) static void uniphier_sd_internal_dma_release(struct tmio_mmc_host *host)