diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-07 17:19:30 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-15 07:45:52 -0500 |
commit | c531a12ae63b6438a7859994aca23859f5706010 (patch) | |
tree | fc32fd04015270067db585207e91a26f5498ab4f | |
parent | 642745184f82688eb3ef0cdfaa4ba632055be9af (diff) |
Bluetooth: remove l2cap_load() hack
l2cap_load() was added to trigger l2cap.ko module loading from the RFCOMM
and BNEP modules. Now that L2CAP module is gone, we don't need it anymore.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r-- | include/net/bluetooth/l2cap.h | 2 | ||||
-rw-r--r-- | net/bluetooth/bnep/core.c | 2 | ||||
-rw-r--r-- | net/bluetooth/cmtp/core.c | 2 | ||||
-rw-r--r-- | net/bluetooth/hidp/core.c | 2 | ||||
-rw-r--r-- | net/bluetooth/l2cap_core.c | 8 | ||||
-rw-r--r-- | net/bluetooth/rfcomm/core.c | 2 |
6 files changed, 0 insertions, 18 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 75ef0b2948f..9fb87fe1aec 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -455,6 +455,4 @@ void l2cap_send_disconn_req(struct l2cap_conn *conn, struct sock *sk, int err); | |||
455 | void l2cap_chan_del(struct sock *sk, int err); | 455 | void l2cap_chan_del(struct sock *sk, int err); |
456 | int l2cap_do_connect(struct sock *sk); | 456 | int l2cap_do_connect(struct sock *sk); |
457 | 457 | ||
458 | void l2cap_load(void); | ||
459 | |||
460 | #endif /* __L2CAP_H */ | 458 | #endif /* __L2CAP_H */ |
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 5868597534e..03d4d1245d5 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c | |||
@@ -708,8 +708,6 @@ static int __init bnep_init(void) | |||
708 | { | 708 | { |
709 | char flt[50] = ""; | 709 | char flt[50] = ""; |
710 | 710 | ||
711 | l2cap_load(); | ||
712 | |||
713 | #ifdef CONFIG_BT_BNEP_PROTO_FILTER | 711 | #ifdef CONFIG_BT_BNEP_PROTO_FILTER |
714 | strcat(flt, "protocol "); | 712 | strcat(flt, "protocol "); |
715 | #endif | 713 | #endif |
diff --git a/net/bluetooth/cmtp/core.c b/net/bluetooth/cmtp/core.c index 2cee71a714c..964ea9126f9 100644 --- a/net/bluetooth/cmtp/core.c +++ b/net/bluetooth/cmtp/core.c | |||
@@ -469,8 +469,6 @@ int cmtp_get_conninfo(struct cmtp_conninfo *ci) | |||
469 | 469 | ||
470 | static int __init cmtp_init(void) | 470 | static int __init cmtp_init(void) |
471 | { | 471 | { |
472 | l2cap_load(); | ||
473 | |||
474 | BT_INFO("CMTP (CAPI Emulation) ver %s", VERSION); | 472 | BT_INFO("CMTP (CAPI Emulation) ver %s", VERSION); |
475 | 473 | ||
476 | cmtp_init_sockets(); | 474 | cmtp_init_sockets(); |
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index e0de92952f3..2429ca2d7b0 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c | |||
@@ -1019,8 +1019,6 @@ static int __init hidp_init(void) | |||
1019 | { | 1019 | { |
1020 | int ret; | 1020 | int ret; |
1021 | 1021 | ||
1022 | l2cap_load(); | ||
1023 | |||
1024 | BT_INFO("HIDP (Human Interface Emulation) ver %s", VERSION); | 1022 | BT_INFO("HIDP (Human Interface Emulation) ver %s", VERSION); |
1025 | 1023 | ||
1026 | ret = hid_register_driver(&hidp_driver); | 1024 | ret = hid_register_driver(&hidp_driver); |
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 6f054d906c6..bd88641b4ae 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -3855,13 +3855,5 @@ void l2cap_exit(void) | |||
3855 | l2cap_cleanup_sockets(); | 3855 | l2cap_cleanup_sockets(); |
3856 | } | 3856 | } |
3857 | 3857 | ||
3858 | void l2cap_load(void) | ||
3859 | { | ||
3860 | /* Dummy function to trigger automatic L2CAP module loading by | ||
3861 | * other modules that use L2CAP sockets but don't use any other | ||
3862 | * symbols from it. */ | ||
3863 | } | ||
3864 | EXPORT_SYMBOL(l2cap_load); | ||
3865 | |||
3866 | module_param(disable_ertm, bool, 0644); | 3858 | module_param(disable_ertm, bool, 0644); |
3867 | MODULE_PARM_DESC(disable_ertm, "Disable enhanced retransmission mode"); | 3859 | MODULE_PARM_DESC(disable_ertm, "Disable enhanced retransmission mode"); |
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 6b83776534f..c9973932456 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
@@ -2154,8 +2154,6 @@ static int __init rfcomm_init(void) | |||
2154 | { | 2154 | { |
2155 | int err; | 2155 | int err; |
2156 | 2156 | ||
2157 | l2cap_load(); | ||
2158 | |||
2159 | hci_register_cb(&rfcomm_cb); | 2157 | hci_register_cb(&rfcomm_cb); |
2160 | 2158 | ||
2161 | rfcomm_thread = kthread_run(rfcomm_run, NULL, "krfcommd"); | 2159 | rfcomm_thread = kthread_run(rfcomm_run, NULL, "krfcommd"); |