diff options
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 35e502a72495..199ef379e501 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -217,12 +217,12 @@ int snmp6_register_dev(struct inet6_dev *idev) | |||
217 | if (!proc_net_devsnmp6) | 217 | if (!proc_net_devsnmp6) |
218 | return -ENOENT; | 218 | return -ENOENT; |
219 | 219 | ||
220 | p = create_proc_entry(idev->dev->name, S_IRUGO, proc_net_devsnmp6); | 220 | p = proc_create(idev->dev->name, S_IRUGO, |
221 | proc_net_devsnmp6, &snmp6_seq_fops); | ||
221 | if (!p) | 222 | if (!p) |
222 | return -ENOMEM; | 223 | return -ENOMEM; |
223 | 224 | ||
224 | p->data = idev; | 225 | p->data = idev; |
225 | p->proc_fops = &snmp6_seq_fops; | ||
226 | 226 | ||
227 | idev->stats.proc_dir_entry = p; | 227 | idev->stats.proc_dir_entry = p; |
228 | return 0; | 228 | return 0; |