patch-2.1.36 linux/drivers/net/pt.c

Next file: linux/drivers/net/scc.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/net/pt.c linux/drivers/net/pt.c
@@ -92,6 +92,7 @@
 #include <linux/timer.h>
 #include <linux/if_arp.h>
 #include <linux/pt.h>
+#include <linux/init.h>
 #include "z8530.h"
 #include <net/ax25.h>
 
@@ -480,7 +481,7 @@
 
 
 
-int pt_init(void)
+__initfunc(int pt_init(void))
 {
     int *port;
     int ioaddr = 0;
@@ -542,7 +543,7 @@
 /*
  * Probe for PT card.  Also initialises the timers
  */
-static int hw_probe(int ioaddr)
+__initfunc(static int hw_probe(int ioaddr))
 {
     int time = 1000;		/* Number of milliseconds to test */
     int a = 1;
@@ -1380,7 +1381,6 @@
                  skb->protocol = ntohs(ETH_P_AX25);
                  skb->mac.raw=skb->data;
                  lp->stats.rx_bytes+=skb->len;
-                 IS_SKB(skb);
                  netif_rx(skb);
                  lp->stats.rx_packets++;
                  if (!lp->dmachan)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov