hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/net/wireless/broadcom/b43legacy/pio.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 Broadcom B43legacy wireless driver
....@@ -6,20 +7,6 @@
67
78 Copyright (c) 2005 Michael Buesch <m@bues.ch>
89
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.
2310
2411 */
2512
....@@ -277,9 +264,9 @@
277264 return 0;
278265 }
279266
280
-static void tx_tasklet(unsigned long d)
267
+static void tx_tasklet(struct tasklet_struct *t)
281268 {
282
- struct b43legacy_pioqueue *queue = (struct b43legacy_pioqueue *)d;
269
+ struct b43legacy_pioqueue *queue = from_tasklet(queue, t, txtask);
283270 struct b43legacy_wldev *dev = queue->dev;
284271 unsigned long flags;
285272 struct b43legacy_pio_txpacket *packet, *tmp_packet;
....@@ -344,8 +331,7 @@
344331 INIT_LIST_HEAD(&queue->txfree);
345332 INIT_LIST_HEAD(&queue->txqueue);
346333 INIT_LIST_HEAD(&queue->txrunning);
347
- tasklet_init(&queue->txtask, tx_tasklet,
348
- (unsigned long)queue);
334
+ tasklet_setup(&queue->txtask, tx_tasklet);
349335
350336 value = b43legacy_read32(dev, B43legacy_MMIO_MACCTL);
351337 value &= ~B43legacy_MACCTL_BE;