patch-2.2.17 linux/drivers/net/ppp_deflate.c
Next file: linux/drivers/net/rtl8139.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Mon Sep 4 18:39:19 2000
- Orig file:
v2.2.16/drivers/net/ppp_deflate.c
- Orig date:
Mon Sep 4 18:37:25 2000
diff -u --recursive --new-file v2.2.16/drivers/net/ppp_deflate.c linux/drivers/net/ppp_deflate.c
@@ -33,6 +33,7 @@
#include <linux/module.h>
#include <linux/kernel.h>
+#include <linux/init.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/fcntl.h>
@@ -656,13 +657,7 @@
z_comp_stats, /* decomp_stat */
};
-#ifdef MODULE
-/*************************************************************
- * Module support routines
- *************************************************************/
-
-int
-init_module(void)
+__initfunc(int ppp_deflate_install(void))
{
int answer = ppp_register_compressor (&ppp_deflate);
if (answer == 0)
@@ -670,6 +665,14 @@
"PPP Deflate Compression module registered\n");
ppp_register_compressor(&ppp_deflate_draft);
return answer;
+}
+
+#ifdef MODULE
+
+int
+init_module(void)
+{
+ return ppp_deflate_install();
}
void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)