bluetooth: kill unused 'module' argument of bt_procfs_init()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 4 Apr 2013 23:14:33 +0000 (19:14 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:36 +0000 (14:13 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/net/bluetooth/bluetooth.h
net/bluetooth/af_bluetooth.c
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hci_sock.c
net/bluetooth/hidp/sock.c
net/bluetooth/l2cap_sock.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c

index 9531beee09b55342fec2266e5d9c9bba41248c2d..946c7772b1370c76d2ee64dbfaa161de770f710b 100644 (file)
@@ -319,7 +319,7 @@ extern void hci_sock_cleanup(void);
 extern int bt_sysfs_init(void);
 extern void bt_sysfs_cleanup(void);
 
-extern int  bt_procfs_init(struct module* module, struct net *net, const char *name,
+extern int  bt_procfs_init(struct net *net, const char *name,
                           struct bt_sock_list* sk_list,
                           int (* seq_show)(struct seq_file *, void *));
 extern void bt_procfs_cleanup(struct net *net, const char *name);
index 8ab94c6f6f3f230fc52a7a6077d2003e2090e04b..68e6fefb365581786a46a20cf3b1ae4681436bd7 100644 (file)
@@ -634,7 +634,7 @@ static const struct file_operations bt_fops = {
        .release = seq_release_private
 };
 
-int bt_procfs_init(struct module* module, struct net *net, const char *name,
+int bt_procfs_init(struct net *net, const char *name,
                   struct bt_sock_list* sk_list,
                   int (* seq_show)(struct seq_file *, void *))
 {
@@ -656,7 +656,7 @@ void bt_procfs_cleanup(struct net *net, const char *name)
        remove_proc_entry(name, net->proc_net);
 }
 #else
-int bt_procfs_init(struct module* module, struct net *net, const char *name,
+int bt_procfs_init(struct net *net, const char *name,
                   struct bt_sock_list* sk_list,
                   int (* seq_show)(struct seq_file *, void *))
 {
index e7154a58465f6b9136f527ab868024464d961564..d4686fb7e95747bcc219331b1323022e28328c3d 100644 (file)
@@ -234,7 +234,7 @@ int __init bnep_sock_init(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "bnep", &bnep_sk_list, NULL);
+       err = bt_procfs_init(&init_net, "bnep", &bnep_sk_list, NULL);
        if (err < 0) {
                BT_ERR("Failed to create BNEP proc file");
                bt_sock_unregister(BTPROTO_BNEP);
index 1c57482112b6e5c1eebfa30ce1ac84375db737dd..03f26bf85d74f187d1d2ba5fb3e0766a27d22662 100644 (file)
@@ -245,7 +245,7 @@ int cmtp_init_sockets(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "cmtp", &cmtp_sk_list, NULL);
+       err = bt_procfs_init(&init_net, "cmtp", &cmtp_sk_list, NULL);
        if (err < 0) {
                BT_ERR("Failed to create CMTP proc file");
                bt_sock_unregister(BTPROTO_HIDP);
index 6a93614f2c49c4a7c498f20656ed2a0560de7c33..6ad23951c13359ed01c31b59669115909a155102 100644 (file)
@@ -1102,7 +1102,7 @@ int __init hci_sock_init(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "hci", &hci_sk_list, NULL);
+       err = bt_procfs_init(&init_net, "hci", &hci_sk_list, NULL);
        if (err < 0) {
                BT_ERR("Failed to create HCI proc file");
                bt_sock_unregister(BTPROTO_HCI);
index 82a829d90b0f4a8f60013653bf0eed34237cb5b0..e7e04d4b9d99b8b6f4c23f89080e80693f806bbe 100644 (file)
@@ -284,7 +284,7 @@ int __init hidp_init_sockets(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "hidp", &hidp_sk_list, NULL);
+       err = bt_procfs_init(&init_net, "hidp", &hidp_sk_list, NULL);
        if (err < 0) {
                BT_ERR("Failed to create HIDP proc file");
                bt_sock_unregister(BTPROTO_HIDP);
index 1bcfb8422fdcf55096e9b4131e07eab63d5c365c..fe15960c02c35e05b807b03475b08fae0ac3a4e9 100644 (file)
@@ -1292,7 +1292,7 @@ int __init l2cap_init_sockets(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "l2cap", &l2cap_sk_list,
+       err = bt_procfs_init(&init_net, "l2cap", &l2cap_sk_list,
                             NULL);
        if (err < 0) {
                BT_ERR("Failed to create L2CAP proc file");
index c23bae86263b6e98a21a8f69ae45190b827b2376..fda3bb4019a35e625c0d219a3c9418560058b340 100644 (file)
@@ -1036,7 +1036,7 @@ int __init rfcomm_init_sockets(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "rfcomm", &rfcomm_sk_list, NULL);
+       err = bt_procfs_init(&init_net, "rfcomm", &rfcomm_sk_list, NULL);
        if (err < 0) {
                BT_ERR("Failed to create RFCOMM proc file");
                bt_sock_unregister(BTPROTO_RFCOMM);
index fad0302bdb325e5df700edf4fe323c6226216599..7e8dbaf8bc1064638c000a93de618b8a831fe6df 100644 (file)
@@ -1083,7 +1083,7 @@ int __init sco_init(void)
                goto error;
        }
 
-       err = bt_procfs_init(THIS_MODULE, &init_net, "sco", &sco_sk_list, NULL);
+       err = bt_procfs_init(&init_net, "sco", &sco_sk_list, NULL);
        if (err < 0) {
                BT_ERR("Failed to create SCO proc file");
                bt_sock_unregister(BTPROTO_SCO);
This page took 0.029523 seconds and 5 git commands to generate.