Skip to content

Commit ddf116f

Browse files
esmilstorulf
authored andcommitted
mmc: s3cmci: 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 0f5a7cb commit ddf116f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mmc/host/s3cmci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ static void do_pio_write(struct s3cmci_host *host)
540540
enable_imask(host, S3C2410_SDIIMSK_TXFIFOHALF);
541541
}
542542

543-
static void pio_tasklet(unsigned long data)
543+
static void pio_tasklet(struct tasklet_struct *t)
544544
{
545-
struct s3cmci_host *host = (struct s3cmci_host *) data;
545+
struct s3cmci_host *host = from_tasklet(host, t, pio_tasklet);
546546

547547
s3cmci_disable_irq(host, true);
548548

@@ -1532,7 +1532,7 @@ static int s3cmci_probe(struct platform_device *pdev)
15321532
host->pdata = pdev->dev.platform_data;
15331533

15341534
spin_lock_init(&host->complete_lock);
1535-
tasklet_init(&host->pio_tasklet, pio_tasklet, (unsigned long) host);
1535+
tasklet_setup(&host->pio_tasklet, pio_tasklet);
15361536

15371537
if (host->is2440) {
15381538
host->sdiimsk = S3C2440_SDIIMSK;

0 commit comments

Comments
 (0)