diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-07-26 00:30:43 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-07-26 00:30:43 +0000 |
commit | b764ebded8f543d62e1a19463db7c2926b9b22e0 (patch) | |
tree | 60e0b36a1f89a6339bd3a357420c1f1152224a2a /drivers/dahdi/dahdi_dummy.c | |
parent | 113b9311ebca9311befbd017eb27f6a25949e6a6 (diff) |
dahdi: Move the 'owner' field from dahdi_span to dahdi_span_ops.
One more thing that can be moved out of the per-span structure.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8986 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_dummy.c')
-rw-r--r-- | drivers/dahdi/dahdi_dummy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi_dummy.c b/drivers/dahdi/dahdi_dummy.c index f50996a..e7055db 100644 --- a/drivers/dahdi/dahdi_dummy.c +++ b/drivers/dahdi/dahdi_dummy.c @@ -199,6 +199,10 @@ static void dahdi_dummy_timer(unsigned long param) } #endif +static const struct dahdi_span_ops dummy_ops = { + .owner = THIS_MODULE, +}; + static int dahdi_dummy_initialize(struct dahdi_dummy *ztd) { /* DAHDI stuff */ @@ -208,12 +212,12 @@ static int dahdi_dummy_initialize(struct dahdi_dummy *ztd) sprintf(ztd->chan->name, "DAHDI_DUMMY/%d/%d", 1, 0); dahdi_copy_string(ztd->span.devicetype, "DAHDI Dummy Timing", sizeof(ztd->span.devicetype)); ztd->chan->chanpos = 1; - ztd->span.owner = THIS_MODULE; ztd->span.chans = &ztd->chan; ztd->span.channels = 0; /* no channels on our span */ ztd->span.deflaw = DAHDI_LAW_MULAW; init_waitqueue_head(&ztd->span.maintq); ztd->chan->pvt = ztd; + ztd->span.ops = &dummy_ops; if (dahdi_register(&ztd->span, 0)) { return -1; } |