summaryrefslogtreecommitdiff
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
commit009bd16d8fc536f682f33627942719ab6dcb95d1 (patch)
treec45b2c4d9cddbcc54f767f5be6bd5c355d01d22f
parent3359114465e73ab4f74101ec99f2f14037150573 (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
-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);
}