summaryrefslogtreecommitdiff
path: root/drivers/dahdi/zaphfc/base.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-08-24 12:28:39 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-08-24 12:34:02 +0300
commitbc4ae5301d9c34a7f4df74ba1e84742b8e65ab58 (patch)
treedf2b3a16845cb481e6a6ca9e101c741541042e57 /drivers/dahdi/zaphfc/base.c
parentc394e7fc85e7019bc667461d3718e4e5b11347ac (diff)
set modules to be ower-s of their spans
Set 'span->owner = THIS_MODULE' for all of our drivers. This is for the reference counting introduced in 2.3. Otherwise we get annoying WARN_ON traces. Origin: http://bugs.elastix.org/view.php?id=408 (Patch kernel_tainted_zaphfc_opvxa1200.patch by Odicha)
Diffstat (limited to 'drivers/dahdi/zaphfc/base.c')
-rw-r--r--drivers/dahdi/zaphfc/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/zaphfc/base.c b/drivers/dahdi/zaphfc/base.c
index 60a5688..049a37b 100644
--- a/drivers/dahdi/zaphfc/base.c
+++ b/drivers/dahdi/zaphfc/base.c
@@ -657,6 +657,7 @@ static int hfc_zap_initialize(struct dahdi_hfc *hfccard)
hfccard->span.spantype = hfctmp->nt_mode ? "NT" : "TE";
hfccard->span.manufacturer = "Cologne Chips";
hfccard->span.spanconfig = hfc_zap_spanconfig;
+ hfccard->span.owner = THIS_MODULE;
hfccard->span.chanconfig = hfc_zap_chanconfig;
hfccard->span.startup = hfc_zap_startup;
hfccard->span.shutdown = hfc_zap_shutdown;