patch-2.4.0-test9 linux/drivers/net/declance.c

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

diff -u --recursive --new-file v2.4.0-test8/linux/drivers/net/declance.c linux/drivers/net/declance.c
@@ -1030,6 +1030,7 @@
 	/* Make certain the data structures used by the LANCE are aligned. */
 	dev->priv = (void *) (((unsigned long) dev->priv + 7) & ~7);
 	lp = (struct lance_private *) dev->priv;
+	spin_lock_init(&lp->lock);
 
 	switch (type) {
 #ifdef CONFIG_TC
@@ -1193,9 +1194,9 @@
 	lp->multicast_timer.function = &lance_set_multicast_retry;
 
 #ifdef MODULE
-   dev->ifindex = dev_new_index();
-   lp->next_module = root_lance_dev;
-   root_lance_dev = lp;
+	dev->ifindex = dev_new_index();
+	lp->next_module = root_lance_dev;
+	root_lance_dev = lp;
 #endif
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)