aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/sco.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-02-07 17:08:52 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-14 15:27:36 -0500
commit642745184f82688eb3ef0cdfaa4ba632055be9af (patch)
tree481319e39ccd971d770d88e48507469aad4adc87 /net/bluetooth/sco.c
parentc4c896e1471aec3b004a693c689f60be3b17ac86 (diff)
Bluetooth: Merge L2CAP and SCO modules into bluetooth.ko
Actually doesn't make sense have these modules built separately. The L2CAP layer is needed by almost all Bluetooth protocols and profiles. There isn't any real use case without having L2CAP loaded. SCO is only essential for Audio transfers, but it is so small that we can have it loaded always in bluetooth.ko without problems. If you really doesn't want it you can disable SCO in the kernel config. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r--net/bluetooth/sco.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index 926ed39912ea..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
55static int disable_esco; 53static int disable_esco;
56 54
57static const struct proto_ops sco_sock_ops; 55static const struct proto_ops sco_sock_ops;
@@ -1024,7 +1022,7 @@ static struct hci_proto sco_hci_proto = {
1024 .recv_scodata = sco_recv_scodata 1022 .recv_scodata = sco_recv_scodata
1025}; 1023};
1026 1024
1027static int __init sco_init(void) 1025int __init sco_init(void)
1028{ 1026{
1029 int err; 1027 int err;
1030 1028
@@ -1052,7 +1050,6 @@ static int __init sco_init(void)
1052 BT_ERR("Failed to create SCO debug file"); 1050 BT_ERR("Failed to create SCO debug file");
1053 } 1051 }
1054 1052
1055 BT_INFO("SCO (Voice Link) ver %s", VERSION);
1056 BT_INFO("SCO socket layer initialized"); 1053 BT_INFO("SCO socket layer initialized");
1057 1054
1058 return 0; 1055 return 0;
@@ -1062,7 +1059,7 @@ error:
1062 return err; 1059 return err;
1063} 1060}
1064 1061
1065static void __exit sco_exit(void) 1062void __exit sco_exit(void)
1066{ 1063{
1067 debugfs_remove(sco_debugfs); 1064 debugfs_remove(sco_debugfs);
1068 1065
@@ -1075,14 +1072,5 @@ static void __exit sco_exit(void)
1075 proto_unregister(&sco_proto); 1072 proto_unregister(&sco_proto);
1076} 1073}
1077 1074
1078module_init(sco_init);
1079module_exit(sco_exit);
1080
1081module_param(disable_esco, bool, 0644); 1075module_param(disable_esco, bool, 0644);
1082MODULE_PARM_DESC(disable_esco, "Disable eSCO connection creation"); 1076MODULE_PARM_DESC(disable_esco, "Disable eSCO connection creation");
1083
1084MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
1085MODULE_DESCRIPTION("Bluetooth SCO ver " VERSION);
1086MODULE_VERSION(VERSION);
1087MODULE_LICENSE("GPL");
1088MODULE_ALIAS("bt-proto-2");