| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | Broadcom B43legacy wireless driver |
|---|
| .. | .. |
|---|
| 6 | 7 | |
|---|
| 7 | 8 | Copyright (c) 2005 Michael Buesch <m@bues.ch> |
|---|
| 8 | 9 | |
|---|
| 9 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - (at your option) any later version. |
|---|
| 13 | | - |
|---|
| 14 | | - This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - GNU General Public License for more details. |
|---|
| 18 | | - |
|---|
| 19 | | - You should have received a copy of the GNU General Public License |
|---|
| 20 | | - along with this program; see the file COPYING. If not, write to |
|---|
| 21 | | - the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, |
|---|
| 22 | | - Boston, MA 02110-1301, USA. |
|---|
| 23 | 10 | |
|---|
| 24 | 11 | */ |
|---|
| 25 | 12 | |
|---|
| .. | .. |
|---|
| 277 | 264 | return 0; |
|---|
| 278 | 265 | } |
|---|
| 279 | 266 | |
|---|
| 280 | | -static void tx_tasklet(unsigned long d) |
|---|
| 267 | +static void tx_tasklet(struct tasklet_struct *t) |
|---|
| 281 | 268 | { |
|---|
| 282 | | - struct b43legacy_pioqueue *queue = (struct b43legacy_pioqueue *)d; |
|---|
| 269 | + struct b43legacy_pioqueue *queue = from_tasklet(queue, t, txtask); |
|---|
| 283 | 270 | struct b43legacy_wldev *dev = queue->dev; |
|---|
| 284 | 271 | unsigned long flags; |
|---|
| 285 | 272 | struct b43legacy_pio_txpacket *packet, *tmp_packet; |
|---|
| .. | .. |
|---|
| 344 | 331 | INIT_LIST_HEAD(&queue->txfree); |
|---|
| 345 | 332 | INIT_LIST_HEAD(&queue->txqueue); |
|---|
| 346 | 333 | INIT_LIST_HEAD(&queue->txrunning); |
|---|
| 347 | | - tasklet_init(&queue->txtask, tx_tasklet, |
|---|
| 348 | | - (unsigned long)queue); |
|---|
| 334 | + tasklet_setup(&queue->txtask, tx_tasklet); |
|---|
| 349 | 335 | |
|---|
| 350 | 336 | value = b43legacy_read32(dev, B43legacy_MMIO_MACCTL); |
|---|
| 351 | 337 | value &= ~B43legacy_MACCTL_BE; |
|---|