]> git.hungrycats.org Git - linux/commitdiff
[PATCH] more 2.0/2.2 bits
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 6 Mar 2003 09:39:38 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 6 Mar 2003 09:39:38 +0000 (01:39 -0800)
drivers/net/mac8390.c
drivers/net/sk_mca.c

index 425c55d6271cfa95ea10c7733bd2e4aba71ba9f0..f41540de51e017f54d6bf8f63b2ecbd66817ad35 100644 (file)
@@ -376,11 +376,9 @@ int __init mac8390_probe(struct net_device * dev)
 }
 
 #ifdef MODULE
-#if LINUX_VERSION_CODE > 0x20118
 MODULE_AUTHOR("David Huggins-Daines <dhd@debian.org> and others");
 MODULE_DESCRIPTION("Macintosh NS8390-based Nubus Ethernet driver");
 MODUEL_LICENSE("GPL");
-#endif
 
 int init_module(void)
 {
index bab062f98c8844581509a920ac17cc402808b503..5ba5da92920a9d948ec901840a2a9b3b8c1fbb19 100644 (file)
@@ -649,9 +649,7 @@ static u16 irqrx_handler(struct SKMCA_NETDEV *dev, u16 oldcsr0)
                                skb->protocol = eth_type_trans(skb, dev);
                                skb->ip_summed = CHECKSUM_NONE;
                                priv->stat.rx_packets++;
-#if LINUX_VERSION_CODE >= 0x020119     /* byte counters for >= 2.1.25 */
                                priv->stat.rx_bytes += descr.Len;
-#endif
                                netif_rx(skb);
                                dev->last_rx = jiffies;
                        }
@@ -709,9 +707,7 @@ static u16 irqtx_handler(struct SKMCA_NETDEV *dev, u16 oldcsr0)
                /* update statistics */
                if ((descr.Flags & TXDSCR_FLAGS_ERR) == 0) {
                        priv->stat.tx_packets++;
-#if LINUX_VERSION_CODE >= 0x020119     /* byte counters for >= 2.1.25 */
                        priv->stat.tx_bytes++;
-#endif
                } else {
                        priv->stat.tx_errors++;
                        if ((descr.Status & TXDSCR_STATUS_UFLO) != 0) {
@@ -1001,13 +997,8 @@ static int skmca_tx(struct sk_buff *skb, struct SKMCA_NETDEV *dev)
 
       tx_done:
 
-       /* When did that change exactly ? */
-
-#if LINUX_VERSION_CODE >= 0x020200
        dev_kfree_skb(skb);
-#else
-       dev_kfree_skb(skb, FREE_WRITE);
-#endif
+
        return retval;
 }
 
@@ -1146,9 +1137,7 @@ int __init skmca_probe(struct SKMCA_NETDEV *dev)
                mca_set_adapter_name(slot, "SKNET MC2+ Ethernet Adapter");
        mca_set_adapter_procfn(slot, (MCA_ProcFn) skmca_getinfo, dev);
 
-#if LINUX_VERSION_CODE >= 0x020200
        mca_mark_as_used(slot);
-#endif
 
        /* announce success */
        printk("%s: SKNet %s adapter found in slot %d\n", dev->name,
@@ -1283,9 +1272,7 @@ void cleanup_module(void)
                                free_irq(dev->irq, dev);
                        dev->irq = 0;
                        unregister_netdev(dev);
-#if LINUX_VERSION_CODE >= 0x020200
                        mca_mark_as_unused(priv->slot);
-#endif
                        mca_set_adapter_procfn(priv->slot, NULL, NULL);
                        kfree(dev->priv);
                        dev->priv = NULL;