patch-1.3.29 linux/drivers/net/slip.c

Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/block/genhd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.28/linux/drivers/net/slip.c linux/drivers/net/slip.c
@@ -1163,15 +1163,14 @@
 	}
 
 
-	/* If not loadable module, a bootstrap Space.c slip_proto dev
-	 *  now needs to be unregistered.
+#ifdef MODULE
+	return status;
+#else
+	/* Return "not found", so that dev_init() will unlink
+	 * the placeholder device entry for us.
 	 */
-#ifndef MODULE
-/*	printk("SLIP: Unregistering bootstrap device "
-	       "'slip_proto' - slip OK\n");*/
-	unregister_netdev(dummy);
+	return ENODEV;
 #endif
-	return status;
       }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this