hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/net/wireless/intersil/orinoco/main.c
....@@ -647,7 +647,7 @@
647647 netif_wake_queue(dev);
648648 }
649649
650
-void orinoco_tx_timeout(struct net_device *dev)
650
+void orinoco_tx_timeout(struct net_device *dev, unsigned int txqueue)
651651 {
652652 struct orinoco_private *priv = ndev_priv(dev);
653653 struct net_device_stats *stats = &dev->stats;
....@@ -1062,9 +1062,9 @@
10621062 stats->rx_dropped++;
10631063 }
10641064
1065
-static void orinoco_rx_isr_tasklet(unsigned long data)
1065
+static void orinoco_rx_isr_tasklet(struct tasklet_struct *t)
10661066 {
1067
- struct orinoco_private *priv = (struct orinoco_private *) data;
1067
+ struct orinoco_private *priv = from_tasklet(priv, t, rx_tasklet);
10681068 struct net_device *dev = priv->ndev;
10691069 struct orinoco_rx_data *rx_data, *temp;
10701070 struct hermes_rx_descriptor *desc;
....@@ -1503,7 +1503,7 @@
15031503 schedule_work(&priv->join_work);
15041504 break;
15051505 }
1506
- /* fall through */
1506
+ fallthrough;
15071507 case HERMES_INQ_HOSTSCAN:
15081508 case HERMES_INQ_HOSTSCAN_SYMBOL: {
15091509 /* Result of a scanning. Contains information about
....@@ -1594,7 +1594,7 @@
15941594 /* Ignore this frame for now */
15951595 if (priv->firmware_type == FIRMWARE_TYPE_AGERE)
15961596 break;
1597
- /* fall through */
1597
+ fallthrough;
15981598 default:
15991599 printk(KERN_DEBUG "%s: Unknown information frame received: "
16001600 "type 0x%04x, length %d\n", dev->name, type, len);
....@@ -2198,8 +2198,7 @@
21982198 INIT_WORK(&priv->wevent_work, orinoco_send_wevents);
21992199
22002200 INIT_LIST_HEAD(&priv->rx_list);
2201
- tasklet_init(&priv->rx_tasklet, orinoco_rx_isr_tasklet,
2202
- (unsigned long) priv);
2201
+ tasklet_setup(&priv->rx_tasklet, orinoco_rx_isr_tasklet);
22032202
22042203 spin_lock_init(&priv->scan_lock);
22052204 INIT_LIST_HEAD(&priv->scan_list);