aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/af_bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r--net/bluetooth/af_bluetooth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 5355df63d39b..d3ee69b35a78 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -641,7 +641,7 @@ int bt_procfs_init(struct module* module, struct net *net, const char *name,
641 sk_list->fops.llseek = seq_lseek; 641 sk_list->fops.llseek = seq_lseek;
642 sk_list->fops.release = seq_release_private; 642 sk_list->fops.release = seq_release_private;
643 643
644 pde = proc_net_fops_create(net, name, 0, &sk_list->fops); 644 pde = proc_create(name, 0, net->proc_net, &sk_list->fops);
645 if (!pde) 645 if (!pde)
646 return -ENOMEM; 646 return -ENOMEM;
647 647
@@ -652,7 +652,7 @@ int bt_procfs_init(struct module* module, struct net *net, const char *name,
652 652
653void bt_procfs_cleanup(struct net *net, const char *name) 653void bt_procfs_cleanup(struct net *net, const char *name)
654{ 654{
655 proc_net_remove(net, name); 655 remove_proc_entry(name, net->proc_net);
656} 656}
657#else 657#else
658int bt_procfs_init(struct module* module, struct net *net, const char *name, 658int bt_procfs_init(struct module* module, struct net *net, const char *name,