Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: uniphier-sd: Use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f1ccc ("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>

authored by

Emil Renner Berthing and committed by
Ulf Hansson
39d2969d c36dd042

+6 -8
+6 -8
drivers/mmc/host/uniphier-sd.c
··· 81 81 } 82 82 83 83 /* external DMA engine */ 84 - static void uniphier_sd_external_dma_issue(unsigned long arg) 84 + static void uniphier_sd_external_dma_issue(struct tasklet_struct *t) 85 85 { 86 - struct tmio_mmc_host *host = (void *)arg; 86 + struct tmio_mmc_host *host = from_tasklet(host, t, dma_issue); 87 87 struct uniphier_sd_priv *priv = uniphier_sd_priv(host); 88 88 89 89 uniphier_sd_dma_endisable(host, 1); ··· 190 190 host->chan_rx = chan; 191 191 host->chan_tx = chan; 192 192 193 - tasklet_init(&host->dma_issue, uniphier_sd_external_dma_issue, 194 - (unsigned long)host); 193 + tasklet_setup(&host->dma_issue, uniphier_sd_external_dma_issue); 195 194 } 196 195 197 196 static void uniphier_sd_external_dma_release(struct tmio_mmc_host *host) ··· 227 228 .dataend = uniphier_sd_external_dma_dataend, 228 229 }; 229 230 230 - static void uniphier_sd_internal_dma_issue(unsigned long arg) 231 + static void uniphier_sd_internal_dma_issue(struct tasklet_struct *t) 231 232 { 232 - struct tmio_mmc_host *host = (void *)arg; 233 + struct tmio_mmc_host *host = from_tasklet(host, t, dma_issue); 233 234 unsigned long flags; 234 235 235 236 spin_lock_irqsave(&host->lock, flags); ··· 308 309 309 310 host->chan_tx = (void *)0xdeadbeaf; 310 311 311 - tasklet_init(&host->dma_issue, uniphier_sd_internal_dma_issue, 312 - (unsigned long)host); 312 + tasklet_setup(&host->dma_issue, uniphier_sd_internal_dma_issue); 313 313 } 314 314 315 315 static void uniphier_sd_internal_dma_release(struct tmio_mmc_host *host)