summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/prim_fbsb.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-24 13:30:56 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-24 13:30:56 +0200
commit806da1525b17070ad1f4a10bdfdee4e4c041f21c (patch)
tree520e8748d8ab1dde45d46b82f89618222e642017 /src/target/firmware/layer1/prim_fbsb.c
parent7419d6559f22ec7c364e7bdedd5e179d34f79775 (diff)
[layer1] use __attribute__ ((constructor)) for completion initializers
Diffstat (limited to 'src/target/firmware/layer1/prim_fbsb.c')
-rw-r--r--src/target/firmware/layer1/prim_fbsb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/firmware/layer1/prim_fbsb.c b/src/target/firmware/layer1/prim_fbsb.c
index fe87996c..2c58033b 100644
--- a/src/target/firmware/layer1/prim_fbsb.c
+++ b/src/target/firmware/layer1/prim_fbsb.c
@@ -561,5 +561,9 @@ void l1s_fbsb_req(uint8_t base_fn, struct l1ctl_fbsb_req *req)
else if (fbs.req.flags & L1CTL_FBSB_F_SB)
tdma_schedule_set(base_fn, sb_sched_set, 0);
+}
+
+static __attribute__ ((constructor)) void l1s_prim_fbsb_init(void)
+{
l1s.completion[L1_COMPL_FB] = &l1a_fb_compl;
}