aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/rfcomm
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/rfcomm')
-rw-r--r--net/bluetooth/rfcomm/core.c4
-rw-r--r--net/bluetooth/rfcomm/sock.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c
index bd46e8927f29..6de33fe7bf5b 100644
--- a/net/bluetooth/rfcomm/core.c
+++ b/net/bluetooth/rfcomm/core.c
@@ -2035,7 +2035,7 @@ static int __init rfcomm_init(void)
2035 2035
2036 kernel_thread(rfcomm_run, NULL, CLONE_KERNEL); 2036 kernel_thread(rfcomm_run, NULL, CLONE_KERNEL);
2037 2037
2038 class_create_file(&bt_class, &class_attr_rfcomm_dlc); 2038 class_create_file(bt_class, &class_attr_rfcomm_dlc);
2039 2039
2040 rfcomm_init_sockets(); 2040 rfcomm_init_sockets();
2041 2041
@@ -2050,7 +2050,7 @@ static int __init rfcomm_init(void)
2050 2050
2051static void __exit rfcomm_exit(void) 2051static void __exit rfcomm_exit(void)
2052{ 2052{
2053 class_remove_file(&bt_class, &class_attr_rfcomm_dlc); 2053 class_remove_file(bt_class, &class_attr_rfcomm_dlc);
2054 2054
2055 hci_unregister_cb(&rfcomm_cb); 2055 hci_unregister_cb(&rfcomm_cb);
2056 2056
diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c
index 4e9962c8cfa6..220fee04e7f2 100644
--- a/net/bluetooth/rfcomm/sock.c
+++ b/net/bluetooth/rfcomm/sock.c
@@ -944,7 +944,7 @@ int __init rfcomm_init_sockets(void)
944 if (err < 0) 944 if (err < 0)
945 goto error; 945 goto error;
946 946
947 class_create_file(&bt_class, &class_attr_rfcomm); 947 class_create_file(bt_class, &class_attr_rfcomm);
948 948
949 BT_INFO("RFCOMM socket layer initialized"); 949 BT_INFO("RFCOMM socket layer initialized");
950 950
@@ -958,7 +958,7 @@ error:
958 958
959void __exit rfcomm_cleanup_sockets(void) 959void __exit rfcomm_cleanup_sockets(void)
960{ 960{
961 class_remove_file(&bt_class, &class_attr_rfcomm); 961 class_remove_file(bt_class, &class_attr_rfcomm);
962 962
963 if (bt_sock_unregister(BTPROTO_RFCOMM) < 0) 963 if (bt_sock_unregister(BTPROTO_RFCOMM) < 0)
964 BT_ERR("RFCOMM socket layer unregistration failed"); 964 BT_ERR("RFCOMM socket layer unregistration failed");