summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-04-06 22:36:09 +0000
committerShaun Ruffell <sruffell@digium.com>2010-04-06 22:36:09 +0000
commitb39b33cdf28d91330b82c88e3c36ca09bee0a026 (patch)
treec45b2c4d9cddbcc54f767f5be6bd5c355d01d22f /drivers/dahdi/wcte12xp
parentce7da481008b47dadd530356275e70cb39b32076 (diff)
wcte12xp: Make sure the interrupt is stopped before freeing the vpmadt032
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8487 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index af7324d..02019a8 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -2185,6 +2185,8 @@ static void __devexit te12xp_remove_one(struct pci_dev *pdev)
#endif
del_timer_sync(&wc->timer);
+ voicebus_release(&wc->vb);
+
#ifdef VPM_SUPPORT
if(vpm) {
wc->vpmadt032 = NULL;
@@ -2194,7 +2196,6 @@ static void __devexit te12xp_remove_one(struct pci_dev *pdev)
}
#endif
- voicebus_release(&wc->vb);
t1_release(wc);
}