From 835a0a722df18f4db9ccf5daf7bd54266d14e4a7 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 26 Oct 2011 19:00:28 +0000 Subject: 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10276 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcte12xp/base.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/dahdi/wcte12xp/base.c') 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 " -- cgit v1.2.3