summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/base.c')
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index e4587eb..babac2e 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -1388,7 +1388,7 @@ static inline void wctdm_receiveprep(struct wctdm *wc, const u8 *sframe)
#endif
_dahdi_receive(s);
if (unlikely(irqmiss))
- ++s->irqmisses;
+ wc->ddev->irqmisses++;
}
}
}
@@ -4258,7 +4258,6 @@ wctdm_init_span(struct wctdm *wc, int spanno, int chanoffset, int chancount,
int digital_span, unsigned int card_position)
{
int x;
- struct pci_dev *pdev = wc->vb.pdev;
struct wctdm_chan *c;
struct wctdm_span *s;
static int spancount;
@@ -4323,7 +4322,6 @@ wctdm_init_span(struct wctdm *wc, int spanno, int chanoffset, int chancount,
}
s->span.channels = chancount;
- s->span.irq = pdev->irq;
if (digital_span) {
wc->mods[chanoffset + 0].chan->chan.sigcap = DAHDI_SIG_CLEAR;
@@ -5497,6 +5495,7 @@ __wctdm_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
#endif
wc->ddev = dahdi_create_device();
wc->ddev->manufacturer = "Digium";
+ wc->ddev->irq = pdev->irq;
wc->ddev->location = kasprintf(GFP_KERNEL, "PCI%s Bus %02d Slot %02d",
(wc->desc->flags & FLAG_EXPRESS) ?
" Express" : "",