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

net: wan: farsync: use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

The new API changes the argument passed to callback functions,
but fortunately it is unused so it is straight forward to use
DECLARE_TASKLET rather than DECLARE_TASLKLET_OLD.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Link: https://lore.kernel.org/r/20210204173947.92884-1-kernel@esmil.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Emil Renner Berthing and committed by
Jakub Kicinski
8cc8993c 9c2865e3

+6 -6
+6 -6
drivers/net/wan/farsync.c
··· 566 566 567 567 static void do_bottom_half_tx(struct fst_card_info *card); 568 568 static void do_bottom_half_rx(struct fst_card_info *card); 569 - static void fst_process_tx_work_q(unsigned long work_q); 570 - static void fst_process_int_work_q(unsigned long work_q); 569 + static void fst_process_tx_work_q(struct tasklet_struct *unused); 570 + static void fst_process_int_work_q(struct tasklet_struct *unused); 571 571 572 - static DECLARE_TASKLET_OLD(fst_tx_task, fst_process_tx_work_q); 573 - static DECLARE_TASKLET_OLD(fst_int_task, fst_process_int_work_q); 572 + static DECLARE_TASKLET(fst_tx_task, fst_process_tx_work_q); 573 + static DECLARE_TASKLET(fst_int_task, fst_process_int_work_q); 574 574 575 575 static struct fst_card_info *fst_card_array[FST_MAX_CARDS]; 576 576 static spinlock_t fst_work_q_lock; ··· 600 600 } 601 601 602 602 static void 603 - fst_process_tx_work_q(unsigned long /*void **/work_q) 603 + fst_process_tx_work_q(struct tasklet_struct *unused) 604 604 { 605 605 unsigned long flags; 606 606 u64 work_txq; ··· 630 630 } 631 631 632 632 static void 633 - fst_process_int_work_q(unsigned long /*void **/work_q) 633 + fst_process_int_work_q(struct tasklet_struct *unused) 634 634 { 635 635 unsigned long flags; 636 636 u64 work_intq;