mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-15 17:14:00 +08:00
mmc: atmel-mci: 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-2-kernel@esmil.dk
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
f9261eb7d3
commit
82a5d372ed
@ -1719,9 +1719,9 @@ static void atmci_detect_change(struct timer_list *t)
|
||||
}
|
||||
}
|
||||
|
||||
static void atmci_tasklet_func(unsigned long priv)
|
||||
static void atmci_tasklet_func(struct tasklet_struct *t)
|
||||
{
|
||||
struct atmel_mci *host = (struct atmel_mci *)priv;
|
||||
struct atmel_mci *host = from_tasklet(host, t, tasklet);
|
||||
struct mmc_request *mrq = host->mrq;
|
||||
struct mmc_data *data = host->data;
|
||||
enum atmel_mci_state state = host->state;
|
||||
@ -2496,7 +2496,7 @@ static int atmci_probe(struct platform_device *pdev)
|
||||
|
||||
host->mapbase = regs->start;
|
||||
|
||||
tasklet_init(&host->tasklet, atmci_tasklet_func, (unsigned long)host);
|
||||
tasklet_setup(&host->tasklet, atmci_tasklet_func);
|
||||
|
||||
ret = request_irq(irq, atmci_interrupt, 0, dev_name(&pdev->dev), host);
|
||||
if (ret) {
|
||||
|
Loading…
Reference in New Issue
Block a user