Skip to content

Commit

Permalink
crypto: axis: convert tasklets to use new tasklet_setup() API
Browse files Browse the repository at this point in the history
In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
  • Loading branch information
Allen Pais authored and intel-lab-lkp committed Aug 17, 2020
1 parent 23868eb commit 83499f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/crypto/axis/artpec6_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,9 +2074,9 @@ static void artpec6_crypto_timeout(struct timer_list *t)
tasklet_schedule(&ac->task);
}

static void artpec6_crypto_task(unsigned long data)
static void artpec6_crypto_task(struct tasklet_struct *t)
{
struct artpec6_crypto *ac = (struct artpec6_crypto *)data;
struct artpec6_crypto *ac = from_tasklet(ac, t, task);
struct artpec6_crypto_req_common *req;
struct artpec6_crypto_req_common *n;
struct list_head complete_done;
Expand Down Expand Up @@ -2899,8 +2899,7 @@ static int artpec6_crypto_probe(struct platform_device *pdev)
artpec6_crypto_init_debugfs();
#endif

tasklet_init(&ac->task, artpec6_crypto_task,
(unsigned long)ac);
tasklet_setup(&ac->task, artpec6_crypto_task);

ac->pad_buffer = devm_kzalloc(&pdev->dev, 2 * ARTPEC_CACHE_LINE_MAX,
GFP_KERNEL);
Expand Down

0 comments on commit 83499f9

Please sign in to comment.