patch-2.3.99-pre1 linux/drivers/net/ppp_deflate.c
Next file: linux/drivers/net/ppp_generic.c
Previous file: linux/drivers/net/ppp_async.c
Back to the patch index
Back to the overall index
- Lines: 70
- Date:
Sun Mar 12 21:12:37 2000
- Orig file:
v2.3.51/linux/drivers/net/ppp_deflate.c
- Orig date:
Wed Mar 10 16:51:35 1999
diff -u --recursive --new-file v2.3.51/linux/drivers/net/ppp_deflate.c linux/drivers/net/ppp_deflate.c
@@ -32,26 +32,9 @@
*/
#include <linux/module.h>
-#include <linux/kernel.h>
-#include <linux/sched.h>
-#include <linux/types.h>
-#include <linux/fcntl.h>
-#include <linux/interrupt.h>
-#include <linux/ptrace.h>
-#include <linux/ioport.h>
-#include <linux/in.h>
#include <linux/malloc.h>
#include <linux/vmalloc.h>
-#include <linux/errno.h>
-#include <linux/string.h> /* used in new tty drivers */
-#include <linux/signal.h> /* used in new tty drivers */
-
-#include <asm/system.h>
-
-#include <linux/netdevice.h>
-#include <linux/skbuff.h>
-#include <linux/inet.h>
-#include <linux/ioctl.h>
+#include <linux/init.h>
#include <linux/ppp_defs.h>
#include <linux/ppp-comp.h>
@@ -656,31 +639,21 @@
z_comp_stats, /* decomp_stat */
};
-#ifdef MODULE
-/*************************************************************
- * Module support routines
- *************************************************************/
-
-int
-init_module(void)
+int deflate_init(void)
{
- int answer = ppp_register_compressor (&ppp_deflate);
+ int answer = ppp_register_compressor(&ppp_deflate);
if (answer == 0)
- printk (KERN_INFO
- "PPP Deflate Compression module registered\n");
+ printk(KERN_INFO
+ "PPP Deflate Compression module registered\n");
ppp_register_compressor(&ppp_deflate_draft);
return answer;
}
-void
-cleanup_module(void)
+void deflate_cleanup(void)
{
- if (MOD_IN_USE)
- printk (KERN_INFO
- "Deflate Compression module busy, remove delayed\n");
- else {
- ppp_unregister_compressor (&ppp_deflate);
- ppp_unregister_compressor (&ppp_deflate_draft);
- }
+ ppp_unregister_compressor(&ppp_deflate);
+ ppp_unregister_compressor(&ppp_deflate_draft);
}
-#endif
+
+module_init(deflate_init);
+module_exit(deflate_cleanup);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)