patch-2.1.20 linux/drivers/net/pi2.c

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

diff -u --recursive --new-file v2.1.19/linux/drivers/net/pi2.c linux/drivers/net/pi2.c
@@ -1400,9 +1400,9 @@
     dev->get_stats = pi_get_stats;
 
     /* Fill in the fields of the device structure */
-    for (i = 0; i < DEV_NUMBUFFS; i++)
-	skb_queue_head_init(&dev->buffs[i]);
 
+    dev_init_buffers(dev):
+    
 #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
     dev->hard_header    = ax25_encapsulate;
     dev->rebuild_header = ax25_rebuild_header;

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