]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv6/anycast.c
net: proc: change proc_net_fops_create to proc_create
[mirror_ubuntu-bionic-kernel.git] / net / ipv6 / anycast.c
index 921b8b398a8caa4cc3cbc562957a7285a88069b0..5a8c00983de555cbf9eb04bc7e5eeb86e1f49fdb 100644 (file)
@@ -509,7 +509,7 @@ static const struct file_operations ac6_seq_fops = {
 
 int __net_init ac6_proc_init(struct net *net)
 {
-       if (!proc_net_fops_create(net, "anycast6", S_IRUGO, &ac6_seq_fops))
+       if (!proc_create("anycast6", S_IRUGO, net->proc_net, &ac6_seq_fops))
                return -ENOMEM;
 
        return 0;