aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/atm/common.c')
-rw-r--r--net/atm/common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/atm/common.c b/net/atm/common.c
index ae002220fa99..fbabff494468 100644
--- a/net/atm/common.c
+++ b/net/atm/common.c
@@ -3,7 +3,6 @@
3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
4 4
5 5
6#include <linux/config.h>
7#include <linux/module.h> 6#include <linux/module.h>
8#include <linux/kmod.h> 7#include <linux/kmod.h>
9#include <linux/net.h> /* struct socket, struct proto_ops */ 8#include <linux/net.h> /* struct socket, struct proto_ops */
@@ -791,8 +790,14 @@ static int __init atm_init(void)
791 printk(KERN_ERR "atm_proc_init() failed with %d\n",error); 790 printk(KERN_ERR "atm_proc_init() failed with %d\n",error);
792 goto out_atmsvc_exit; 791 goto out_atmsvc_exit;
793 } 792 }
793 if ((error = atm_sysfs_init()) < 0) {
794 printk(KERN_ERR "atm_sysfs_init() failed with %d\n",error);
795 goto out_atmproc_exit;
796 }
794out: 797out:
795 return error; 798 return error;
799out_atmproc_exit:
800 atm_proc_exit();
796out_atmsvc_exit: 801out_atmsvc_exit:
797 atmsvc_exit(); 802 atmsvc_exit();
798out_atmpvc_exit: 803out_atmpvc_exit:
@@ -805,6 +810,7 @@ out_unregister_vcc_proto:
805static void __exit atm_exit(void) 810static void __exit atm_exit(void)
806{ 811{
807 atm_proc_exit(); 812 atm_proc_exit();
813 atm_sysfs_exit();
808 atmsvc_exit(); 814 atmsvc_exit();
809 atmpvc_exit(); 815 atmpvc_exit();
810 proto_unregister(&vcc_proto); 816 proto_unregister(&vcc_proto);