summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte11xp.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-06-29 22:44:54 +0000
committerShaun Ruffell <sruffell@digium.com>2009-06-29 22:44:54 +0000
commita39a7eb229d831921d42201b2cb548b81bb91c63 (patch)
treee7fd7223719a761784bc0836d69c44eada9efae1 /drivers/dahdi/wcte11xp.c
parent0b13254ec47e0e72bcfd29c170f5752f87e957ce (diff)
wcte11xp: Set the owner field of the dahdi_span before registration.
(related to issue #10601) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6797 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte11xp.c')
-rw-r--r--drivers/dahdi/wcte11xp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/wcte11xp.c b/drivers/dahdi/wcte11xp.c
index dec6d65..aaa3d29 100644
--- a/drivers/dahdi/wcte11xp.c
+++ b/drivers/dahdi/wcte11xp.c
@@ -964,6 +964,7 @@ static int t1xxp_software_init(struct t1 *wc)
return -1;
t4_serial_setup(wc);
wc->num = x;
+ wc->span.owner = THIS_MODULE;
sprintf(wc->span.name, "WCT1/%d", wc->num);
snprintf(wc->span.desc, sizeof(wc->span.desc) - 1, "%s Card %d", wc->variety, wc->num);
wc->span.manufacturer = "Digium";