diff options
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r-- | drivers/net/pppoe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index 9b30cd600a64..ee8ce195c538 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c | |||
@@ -78,6 +78,7 @@ | |||
78 | #include <linux/proc_fs.h> | 78 | #include <linux/proc_fs.h> |
79 | #include <linux/seq_file.h> | 79 | #include <linux/seq_file.h> |
80 | 80 | ||
81 | #include <net/net_namespace.h> | ||
81 | #include <net/sock.h> | 82 | #include <net/sock.h> |
82 | 83 | ||
83 | #include <asm/uaccess.h> | 84 | #include <asm/uaccess.h> |
@@ -1042,7 +1043,7 @@ static int __init pppoe_proc_init(void) | |||
1042 | { | 1043 | { |
1043 | struct proc_dir_entry *p; | 1044 | struct proc_dir_entry *p; |
1044 | 1045 | ||
1045 | p = create_proc_entry("net/pppoe", S_IRUGO, NULL); | 1046 | p = create_proc_entry("pppoe", S_IRUGO, init_net.proc_net); |
1046 | if (!p) | 1047 | if (!p) |
1047 | return -ENOMEM; | 1048 | return -ENOMEM; |
1048 | 1049 | ||
@@ -1113,7 +1114,7 @@ static void __exit pppoe_exit(void) | |||
1113 | dev_remove_pack(&pppoes_ptype); | 1114 | dev_remove_pack(&pppoes_ptype); |
1114 | dev_remove_pack(&pppoed_ptype); | 1115 | dev_remove_pack(&pppoed_ptype); |
1115 | unregister_netdevice_notifier(&pppoe_notifier); | 1116 | unregister_netdevice_notifier(&pppoe_notifier); |
1116 | remove_proc_entry("net/pppoe", NULL); | 1117 | remove_proc_entry("pppoe", init_net.proc_net); |
1117 | proto_unregister(&pppoe_sk_proto); | 1118 | proto_unregister(&pppoe_sk_proto); |
1118 | } | 1119 | } |
1119 | 1120 | ||