diff options
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r-- | net/bluetooth/sco.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 960c6d1637da..c9348ddda877 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
@@ -50,8 +50,6 @@ | |||
50 | #include <net/bluetooth/hci_core.h> | 50 | #include <net/bluetooth/hci_core.h> |
51 | #include <net/bluetooth/sco.h> | 51 | #include <net/bluetooth/sco.h> |
52 | 52 | ||
53 | #define VERSION "0.6" | ||
54 | |||
55 | static int disable_esco; | 53 | static int disable_esco; |
56 | 54 | ||
57 | static const struct proto_ops sco_sock_ops; | 55 | static const struct proto_ops sco_sock_ops; |
@@ -703,6 +701,7 @@ static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user | |||
703 | break; | 701 | break; |
704 | } | 702 | } |
705 | 703 | ||
704 | memset(&cinfo, 0, sizeof(cinfo)); | ||
706 | cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle; | 705 | cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle; |
707 | memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3); | 706 | memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3); |
708 | 707 | ||
@@ -1023,7 +1022,7 @@ static struct hci_proto sco_hci_proto = { | |||
1023 | .recv_scodata = sco_recv_scodata | 1022 | .recv_scodata = sco_recv_scodata |
1024 | }; | 1023 | }; |
1025 | 1024 | ||
1026 | static int __init sco_init(void) | 1025 | int __init sco_init(void) |
1027 | { | 1026 | { |
1028 | int err; | 1027 | int err; |
1029 | 1028 | ||
@@ -1051,7 +1050,6 @@ static int __init sco_init(void) | |||
1051 | BT_ERR("Failed to create SCO debug file"); | 1050 | BT_ERR("Failed to create SCO debug file"); |
1052 | } | 1051 | } |
1053 | 1052 | ||
1054 | BT_INFO("SCO (Voice Link) ver %s", VERSION); | ||
1055 | BT_INFO("SCO socket layer initialized"); | 1053 | BT_INFO("SCO socket layer initialized"); |
1056 | 1054 | ||
1057 | return 0; | 1055 | return 0; |
@@ -1061,7 +1059,7 @@ error: | |||
1061 | return err; | 1059 | return err; |
1062 | } | 1060 | } |
1063 | 1061 | ||
1064 | static void __exit sco_exit(void) | 1062 | void __exit sco_exit(void) |
1065 | { | 1063 | { |
1066 | debugfs_remove(sco_debugfs); | 1064 | debugfs_remove(sco_debugfs); |
1067 | 1065 | ||
@@ -1074,14 +1072,5 @@ static void __exit sco_exit(void) | |||
1074 | proto_unregister(&sco_proto); | 1072 | proto_unregister(&sco_proto); |
1075 | } | 1073 | } |
1076 | 1074 | ||
1077 | module_init(sco_init); | ||
1078 | module_exit(sco_exit); | ||
1079 | |||
1080 | module_param(disable_esco, bool, 0644); | 1075 | module_param(disable_esco, bool, 0644); |
1081 | MODULE_PARM_DESC(disable_esco, "Disable eSCO connection creation"); | 1076 | MODULE_PARM_DESC(disable_esco, "Disable eSCO connection creation"); |
1082 | |||
1083 | MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); | ||
1084 | MODULE_DESCRIPTION("Bluetooth SCO ver " VERSION); | ||
1085 | MODULE_VERSION(VERSION); | ||
1086 | MODULE_LICENSE("GPL"); | ||
1087 | MODULE_ALIAS("bt-proto-2"); | ||