mmc: s3cmci: Use new tasklet API
authorEmil Renner Berthing <kernel@esmil.dk>
Thu, 4 Feb 2021 15:18:43 +0000 (16:18 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Feb 2021 12:00:31 +0000 (13:00 +0100)
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-6-kernel@esmil.dk
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/s3cmci.c

index a33a7823c265565249002c62f6d7ee8e3ba5488d..0ca6f6d30b7551d2d84b2adc1c75b7b7fe20a2e5 100644 (file)
@@ -540,9 +540,9 @@ static void do_pio_write(struct s3cmci_host *host)
        enable_imask(host, S3C2410_SDIIMSK_TXFIFOHALF);
 }
 
-static void pio_tasklet(unsigned long data)
+static void pio_tasklet(struct tasklet_struct *t)
 {
-       struct s3cmci_host *host = (struct s3cmci_host *) data;
+       struct s3cmci_host *host = from_tasklet(host, t, pio_tasklet);
 
        s3cmci_disable_irq(host, true);
 
@@ -1532,7 +1532,7 @@ static int s3cmci_probe(struct platform_device *pdev)
        host->pdata = pdev->dev.platform_data;
 
        spin_lock_init(&host->complete_lock);
-       tasklet_init(&host->pio_tasklet, pio_tasklet, (unsigned long) host);
+       tasklet_setup(&host->pio_tasklet, pio_tasklet);
 
        if (host->is2440) {
                host->sdiimsk   = S3C2440_SDIIMSK;