summaryrefslogtreecommitdiffstats
path: root/src/ss.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-09-03 12:18:20 +0200
committerPatrick McHardy <kaber@trash.net>2010-09-03 12:18:20 +0200
commit20d309fc70c54fc320c338dfb42802ef60f0d03b (patch)
tree055e21cd87c7d6eba21f08c2b6ce3b506c26bc45 /src/ss.c
parentf5c943423060701b81729d8ea7fb17122dbc72dc (diff)
lce: move protocol registration to dect_lce_init
Perform protocol initialization outside of __init functions to avoid multiple registration with threaded library users. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/ss.c')
-rw-r--r--src/ss.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ss.c b/src/ss.c
index 1db7733..51c6780 100644
--- a/src/ss.c
+++ b/src/ss.c
@@ -355,7 +355,7 @@ static void dect_ciss_shutdown(struct dect_handle *dh,
dect_transaction_close(dh, &sse->transaction, DECT_DDL_RELEASE_NORMAL);
}
-static const struct dect_nwk_protocol ciss_protocol = {
+const struct dect_nwk_protocol dect_ciss_protocol = {
.name = "Call Independant Supplementary Services",
.pd = DECT_PD_CISS,
.max_transactions = 7,
@@ -364,9 +364,3 @@ static const struct dect_nwk_protocol ciss_protocol = {
.rcv = dect_ciss_rcv,
};
-static void __init dect_ciss_init(void)
-{
- dect_lce_register_protocol(&ciss_protocol);
-}
-
-/** @} */