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

net: usb: pegasus: 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
23a64c51 c23d544e

+3 -4
+3 -4
drivers/net/usb/pegasus.c
··· 553 553 tasklet_schedule(&pegasus->rx_tl); 554 554 } 555 555 556 - static void rx_fixup(unsigned long data) 556 + static void rx_fixup(struct tasklet_struct *t) 557 557 { 558 - pegasus_t *pegasus; 558 + pegasus_t *pegasus = from_tasklet(pegasus, t, rx_tl); 559 559 int status; 560 560 561 - pegasus = (pegasus_t *) data; 562 561 if (pegasus->flags & PEGASUS_UNPLUG) 563 562 return; 564 563 ··· 1128 1129 goto out1; 1129 1130 } 1130 1131 1131 - tasklet_init(&pegasus->rx_tl, rx_fixup, (unsigned long) pegasus); 1132 + tasklet_setup(&pegasus->rx_tl, rx_fixup); 1132 1133 1133 1134 INIT_DELAYED_WORK(&pegasus->carrier_check, check_carrier); 1134 1135