.. | .. |
---|
1006 | 1006 | /* |
---|
1007 | 1007 | * Send and receive all queued packets. |
---|
1008 | 1008 | */ |
---|
1009 | | -static void ipwireless_do_tasklet(unsigned long hw_) |
---|
| 1009 | +static void ipwireless_do_tasklet(struct tasklet_struct *t) |
---|
1010 | 1010 | { |
---|
1011 | | - struct ipw_hardware *hw = (struct ipw_hardware *) hw_; |
---|
| 1011 | + struct ipw_hardware *hw = from_tasklet(hw, t, tasklet); |
---|
1012 | 1012 | unsigned long flags; |
---|
1013 | 1013 | |
---|
1014 | 1014 | spin_lock_irqsave(&hw->lock, flags); |
---|
.. | .. |
---|
1635 | 1635 | INIT_LIST_HEAD(&hw->rx_queue); |
---|
1636 | 1636 | INIT_LIST_HEAD(&hw->rx_pool); |
---|
1637 | 1637 | spin_lock_init(&hw->lock); |
---|
1638 | | - tasklet_init(&hw->tasklet, ipwireless_do_tasklet, (unsigned long) hw); |
---|
| 1638 | + tasklet_setup(&hw->tasklet, ipwireless_do_tasklet); |
---|
1639 | 1639 | INIT_WORK(&hw->work_rx, ipw_receive_data_work); |
---|
1640 | 1640 | timer_setup(&hw->setup_timer, ipwireless_setup_timer, 0); |
---|
1641 | 1641 | |
---|