summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp/base.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-10-26 19:00:28 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-10-26 19:00:28 +0000
commit835a0a722df18f4db9ccf5daf7bd54266d14e4a7 (patch)
treed657ae1054c91c3127088a14499582fad841c6af /drivers/dahdi/wcte12xp/base.c
parent581df51b0dfcf3148dad593cb13705fd6896d5ed (diff)
dahdi: Remove dahdi_span.irq and move dahdi_span.irqmisses into dahdi_device.
'irqmisses' is more a function of the device and there are better ways to get to IRQ for a device than storing it in any DAHDI structures. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10276 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp/base.c')
-rw-r--r--drivers/dahdi/wcte12xp/base.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index bfd6190..53c4f7a 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -1835,8 +1835,6 @@ static int t1_software_init(struct t1 *wc, enum linemode type)
if (!wc->ddev->location)
return -ENOMEM;
- wc->span.irq = pdev->irq;
-
if (type == E1) {
wc->span.channels = 31;
wc->span.spantype = "E1";
@@ -2293,7 +2291,7 @@ static inline void t1_receiveprep(struct t1 *wc, const u8* sframe)
wc->rxident = eframe[EFRAME_SIZE + 1];
wc->statreg = eframe[EFRAME_SIZE + 2];
if (wc->rxident != expected) {
- wc->span.irqmisses++;
+ wc->ddev->irqmisses++;
_resend_cmds(wc);
if (unlikely(debug)) {
t1_info(wc, "oops: rxident=%d "