diff options
Diffstat (limited to 'net/phonet/pn_dev.c')
-rw-r--r-- | net/phonet/pn_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 0e527c9dd041..45a7df6575de 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c | |||
@@ -331,7 +331,7 @@ static int __net_init phonet_init_net(struct net *net) | |||
331 | 331 | ||
332 | static void __net_exit phonet_exit_net(struct net *net) | 332 | static void __net_exit phonet_exit_net(struct net *net) |
333 | { | 333 | { |
334 | proc_net_remove(net, "phonet"); | 334 | remove_proc_entry("phonet", net->proc_net); |
335 | } | 335 | } |
336 | 336 | ||
337 | static struct pernet_operations phonet_net_ops = { | 337 | static struct pernet_operations phonet_net_ops = { |
@@ -361,7 +361,7 @@ void phonet_device_exit(void) | |||
361 | rtnl_unregister_all(PF_PHONET); | 361 | rtnl_unregister_all(PF_PHONET); |
362 | unregister_netdevice_notifier(&phonet_device_notifier); | 362 | unregister_netdevice_notifier(&phonet_device_notifier); |
363 | unregister_pernet_subsys(&phonet_net_ops); | 363 | unregister_pernet_subsys(&phonet_net_ops); |
364 | proc_net_remove(&init_net, "pnresource"); | 364 | remove_proc_entry("pnresource", init_net.proc_net); |
365 | } | 365 | } |
366 | 366 | ||
367 | int phonet_route_add(struct net_device *dev, u8 daddr) | 367 | int phonet_route_add(struct net_device *dev, u8 daddr) |