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

net: atm: pppoatm: use new API for wakeup tasklet

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/20210127173256.13954-2-kernel@esmil.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Emil Renner Berthing and committed by
Jakub Kicinski
a5874597 a5b88632

+5 -4
+5 -4
net/atm/pppoatm.c
··· 101 101 * doesn't want to be called in interrupt context, so we do it from 102 102 * a tasklet 103 103 */ 104 - static void pppoatm_wakeup_sender(unsigned long arg) 104 + static void pppoatm_wakeup_sender(struct tasklet_struct *t) 105 105 { 106 - ppp_output_wakeup((struct ppp_channel *) arg); 106 + struct pppoatm_vcc *pvcc = from_tasklet(pvcc, t, wakeup_tasklet); 107 + 108 + ppp_output_wakeup(&pvcc->chan); 107 109 } 108 110 109 111 static void pppoatm_release_cb(struct atm_vcc *atmvcc) ··· 413 411 pvcc->chan.ops = &pppoatm_ops; 414 412 pvcc->chan.mtu = atmvcc->qos.txtp.max_sdu - PPP_HDRLEN - 415 413 (be.encaps == e_vc ? 0 : LLC_LEN); 416 - tasklet_init(&pvcc->wakeup_tasklet, pppoatm_wakeup_sender, 417 - (unsigned long)&pvcc->chan); 414 + tasklet_setup(&pvcc->wakeup_tasklet, pppoatm_wakeup_sender); 418 415 err = ppp_register_channel(&pvcc->chan); 419 416 if (err != 0) { 420 417 kfree(pvcc);