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

caif_virtio: 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>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Emil Renner Berthing and committed by
Jakub Kicinski
ca5ae9e4 5bb98b2c

+3 -5
+3 -5
drivers/net/caif/caif_virtio.c
··· 598 598 return NETDEV_TX_OK; 599 599 } 600 600 601 - static void cfv_tx_release_tasklet(unsigned long drv) 601 + static void cfv_tx_release_tasklet(struct tasklet_struct *t) 602 602 { 603 - struct cfv_info *cfv = (struct cfv_info *)drv; 603 + struct cfv_info *cfv = from_tasklet(cfv, t, tx_release_tasklet); 604 604 cfv_release_used_buf(cfv->vq_tx); 605 605 } 606 606 ··· 716 716 cfv->ctx.head = USHRT_MAX; 717 717 netif_napi_add(netdev, &cfv->napi, cfv_rx_poll, CFV_DEFAULT_QUOTA); 718 718 719 - tasklet_init(&cfv->tx_release_tasklet, 720 - cfv_tx_release_tasklet, 721 - (unsigned long)cfv); 719 + tasklet_setup(&cfv->tx_release_tasklet, cfv_tx_release_tasklet); 722 720 723 721 /* Carrier is off until netdevice is opened */ 724 722 netif_carrier_off(netdev);