forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/tty/ipwireless/hardware.c
....@@ -1006,9 +1006,9 @@
10061006 /*
10071007 * Send and receive all queued packets.
10081008 */
1009
-static void ipwireless_do_tasklet(unsigned long hw_)
1009
+static void ipwireless_do_tasklet(struct tasklet_struct *t)
10101010 {
1011
- struct ipw_hardware *hw = (struct ipw_hardware *) hw_;
1011
+ struct ipw_hardware *hw = from_tasklet(hw, t, tasklet);
10121012 unsigned long flags;
10131013
10141014 spin_lock_irqsave(&hw->lock, flags);
....@@ -1635,7 +1635,7 @@
16351635 INIT_LIST_HEAD(&hw->rx_queue);
16361636 INIT_LIST_HEAD(&hw->rx_pool);
16371637 spin_lock_init(&hw->lock);
1638
- tasklet_init(&hw->tasklet, ipwireless_do_tasklet, (unsigned long) hw);
1638
+ tasklet_setup(&hw->tasklet, ipwireless_do_tasklet);
16391639 INIT_WORK(&hw->work_rx, ipw_receive_data_work);
16401640 timer_setup(&hw->setup_timer, ipwireless_setup_timer, 0);
16411641