patch-2.4.0-test9 linux/drivers/net/pppox.c
Next file: linux/drivers/net/rrunner.c
Previous file: linux/drivers/net/pcmcia/xircom_tulip_cb.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Sep 22 14:21:16 2000
- Orig file:
v2.4.0-test8/linux/drivers/net/pppox.c
- Orig date:
Fri May 12 11:32:08 2000
diff -u --recursive --new-file v2.4.0-test8/linux/drivers/net/pppox.c linux/drivers/net/pppox.c
@@ -17,7 +17,6 @@
*
*/
-#include <linux/config.h>
#include <linux/string.h>
#include <linux/module.h>
@@ -141,22 +140,22 @@
pppox_create
};
+extern int pppoe_init (void);
+
#ifdef MODULE
int init_module(void)
#else
-void __init pppox_proto_init(struct net_proto *pro)
+int __init pppox_proto_init(struct net_proto *pro)
#endif
{
int err = 0;
err = sock_register(&pppox_proto_family);
- if (err == 0)
+ if (err == 0) {
printk(KERN_INFO "Registered PPPoX v0.5\n");
-
-#ifdef CONFIG_PPPOE
- pppoe_init();
-#endif
+ pppoe_init();
+ }
return err;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)