patch-2.4.22 linux-2.4.22/net/atm/pvc.c
Next file: linux-2.4.22/net/atm/raw.c
Previous file: linux-2.4.22/net/atm/proc.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/net/atm/pvc.c
- Orig date:
2001-04-12 12:11:39.000000000 -0700
diff -urN linux-2.4.21/net/atm/pvc.c linux-2.4.22/net/atm/pvc.c
@@ -8,16 +8,12 @@
struct proto_ops */
#include <linux/atm.h> /* ATM stuff */
#include <linux/atmdev.h> /* ATM devices */
-#include <linux/atmclip.h> /* Classical IP over ATM */
#include <linux/errno.h> /* error codes */
#include <linux/kernel.h> /* printk */
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <net/sock.h> /* for sock_no_* */
-#ifdef CONFIG_ATM_CLIP
-#include <net/atmclip.h>
-#endif
#include "resources.h" /* devs and vccs */
#include "common.h" /* common for PVCs and SVCs */
@@ -124,23 +120,12 @@
*/
-static int __init atmpvc_init(void)
+int atmpvc_init(void)
{
- int error;
-
- error = sock_register(&pvc_family_ops);
- if (error < 0) {
- printk(KERN_ERR "ATMPVC: can't register (%d)",error);
- return error;
- }
-#ifdef CONFIG_ATM_CLIP
- atm_clip_init();
-#endif
-#ifdef CONFIG_PROC_FS
- error = atm_proc_init();
- if (error) printk("atm_proc_init fails with %d\n",error);
-#endif
- return 0;
+ return sock_register(&pvc_family_ops);
}
-module_init(atmpvc_init);
+void atmpvc_exit(void)
+{
+ sock_unregister(PF_ATMPVC);
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)