patch-2.2.0-pre1 linux/drivers/net/sdlamain.c

Next file: linux/drivers/net/via-rhine.c
Previous file: linux/drivers/net/lance.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/drivers/net/sdlamain.c linux/drivers/net/sdlamain.c
@@ -29,10 +29,6 @@
 * Jan 02, 1997	Gene Kozin	Initial version.
 *****************************************************************************/
 
-#if	!defined(__KERNEL__) || !defined(MODULE)
-#error	This code MUST be compiled as a kernel module!
-#endif
-
 #include <linux/config.h>	/* OS configuration options */
 #include <linux/stddef.h>	/* offsetof(), etc. */
 #include <linux/errno.h>	/* return codes */
@@ -122,7 +118,12 @@
  *		< 0	error.
  * Context:	process
  */
+ 
+#ifdef MODULE
 int init_module (void)
+#else
+int wanpipe_init(void)
+#endif
 {
 	int cnt, err = 0;
 
@@ -173,6 +174,7 @@
 	return err;
 }
 
+#ifdef MODULE
 /*============================================================================
  * Module 'remove' entry point.
  * o unregister all adapters from the WAN router
@@ -189,6 +191,8 @@
 	}
 	kfree(card_array);
 }
+
+#endif
 
 /******* WAN Device Driver Entry Points *************************************/
 

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