aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/pn_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/pn_dev.c')
-rw-r--r--net/phonet/pn_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index 5bf6341e2dd4..0e527c9dd041 100644
--- a/net/phonet/pn_dev.c
+++ b/net/phonet/pn_dev.c
@@ -320,7 +320,7 @@ static int __net_init phonet_init_net(struct net *net)
320{ 320{
321 struct phonet_net *pnn = phonet_pernet(net); 321 struct phonet_net *pnn = phonet_pernet(net);
322 322
323 if (!proc_net_fops_create(net, "phonet", 0, &pn_sock_seq_fops)) 323 if (!proc_create("phonet", 0, net->proc_net, &pn_sock_seq_fops))
324 return -ENOMEM; 324 return -ENOMEM;
325 325
326 INIT_LIST_HEAD(&pnn->pndevs.list); 326 INIT_LIST_HEAD(&pnn->pndevs.list);
@@ -348,7 +348,7 @@ int __init phonet_device_init(void)
348 if (err) 348 if (err)
349 return err; 349 return err;
350 350
351 proc_net_fops_create(&init_net, "pnresource", 0, &pn_res_seq_fops); 351 proc_create("pnresource", 0, init_net.proc_net, &pn_res_seq_fops);
352 register_netdevice_notifier(&phonet_device_notifier); 352 register_netdevice_notifier(&phonet_device_notifier);
353 err = phonet_netlink_register(); 353 err = phonet_netlink_register();
354 if (err) 354 if (err)