hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/ethernet/3com/3c515.c
....@@ -23,11 +23,6 @@
2323 */
2424
2525 #define DRV_NAME "3c515"
26
-#define DRV_VERSION "0.99t-ac"
27
-#define DRV_RELDATE "28-Oct-2002"
28
-
29
-static char *version =
30
-DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " becker@scyld.com and others\n";
3126
3227 #define CORKSCREW 1
3328
....@@ -84,7 +79,6 @@
8479 MODULE_AUTHOR("Donald Becker <becker@scyld.com>");
8580 MODULE_DESCRIPTION("3Com 3c515 Corkscrew driver");
8681 MODULE_LICENSE("GPL");
87
-MODULE_VERSION(DRV_VERSION);
8882
8983 /* "Knobs" for adjusting internal parameters. */
9084 /* Put out somewhat more debugging messages. (0 - no msg, 1 minimal msgs). */
....@@ -371,7 +365,7 @@
371365 static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb,
372366 struct net_device *dev);
373367 static int corkscrew_rx(struct net_device *dev);
374
-static void corkscrew_timeout(struct net_device *dev);
368
+static void corkscrew_timeout(struct net_device *dev, unsigned int txqueue);
375369 static int boomerang_rx(struct net_device *dev);
376370 static irqreturn_t corkscrew_interrupt(int irq, void *dev_id);
377371 static int corkscrew_close(struct net_device *dev);
....@@ -418,8 +412,6 @@
418412 int found = 0;
419413 if (debug >= 0)
420414 corkscrew_debug = debug;
421
- if (corkscrew_debug)
422
- pr_debug("%s", version);
423415 while (corkscrew_scan(-1))
424416 found++;
425417 return found ? 0 : -ENODEV;
....@@ -429,15 +421,9 @@
429421 struct net_device *tc515_probe(int unit)
430422 {
431423 struct net_device *dev = corkscrew_scan(unit);
432
- static int printed;
433424
434425 if (!dev)
435426 return ERR_PTR(-ENODEV);
436
-
437
- if (corkscrew_debug > 0 && !printed) {
438
- printed = 1;
439
- pr_debug("%s", version);
440
- }
441427
442428 return dev;
443429 }
....@@ -961,7 +947,7 @@
961947 #endif /* AUTOMEDIA */
962948 }
963949
964
-static void corkscrew_timeout(struct net_device *dev)
950
+static void corkscrew_timeout(struct net_device *dev, unsigned int txqueue)
965951 {
966952 int i;
967953 struct corkscrew_private *vp = netdev_priv(dev);
....@@ -1177,7 +1163,7 @@
11771163 if (inl(ioaddr + DownListPtr) == isa_virt_to_bus(&lp->tx_ring[entry]))
11781164 break; /* It still hasn't been processed. */
11791165 if (lp->tx_skbuff[entry]) {
1180
- dev_kfree_skb_irq(lp->tx_skbuff[entry]);
1166
+ dev_consume_skb_irq(lp->tx_skbuff[entry]);
11811167 lp->tx_skbuff[entry] = NULL;
11821168 }
11831169 dirty_tx++;
....@@ -1192,7 +1178,7 @@
11921178 #ifdef VORTEX_BUS_MASTER
11931179 if (status & DMADone) {
11941180 outw(0x1000, ioaddr + Wn7_MasterStatus); /* Ack the event. */
1195
- dev_kfree_skb_irq(lp->tx_skb); /* Release the transferred buffer */
1181
+ dev_consume_skb_irq(lp->tx_skb); /* Release the transferred buffer */
11961182 netif_wake_queue(dev);
11971183 }
11981184 #endif
....@@ -1521,7 +1507,7 @@
15211507 static void set_rx_mode(struct net_device *dev)
15221508 {
15231509 int ioaddr = dev->base_addr;
1524
- short new_mode;
1510
+ unsigned short new_mode;
15251511
15261512 if (dev->flags & IFF_PROMISC) {
15271513 if (corkscrew_debug > 3)
....@@ -1540,7 +1526,6 @@
15401526 struct ethtool_drvinfo *info)
15411527 {
15421528 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
1543
- strlcpy(info->version, DRV_VERSION, sizeof(info->version));
15441529 snprintf(info->bus_info, sizeof(info->bus_info), "ISA 0x%lx",
15451530 dev->base_addr);
15461531 }