summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-07-26 00:30:36 +0000
committerShaun Ruffell <sruffell@digium.com>2010-07-26 00:30:36 +0000
commita4f601f1dacb43a41d03621e5e4f8a3e0c11ee07 (patch)
treed10e3ec6eab53134c929f147f4f522ea1a024ef9 /drivers/dahdi/wctdm24xxp
parentb8b98440adfd62a6fc928e96054970b5228c6407 (diff)
wcte12xp, wctdm24xxp: Add shutdown handlers.
Make the drivers a little more kexec friendly. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8979 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp')
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index 6cd24bd..3973640 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -4983,12 +4983,23 @@ static struct pci_device_id wctdm_pci_tbl[] = {
{ 0 }
};
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12)
+static void wctdm_shutdown(struct pci_dev *pdev)
+{
+ struct wctdm *wc = pci_get_drvdata(pdev);
+ voicebus_stop(&wc->vb);
+}
+#endif
+
MODULE_DEVICE_TABLE(pci, wctdm_pci_tbl);
static struct pci_driver wctdm_driver = {
.name = "wctdm24xxp",
.probe = wctdm_init_one,
.remove = __devexit_p(wctdm_remove_one),
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12)
+ .shutdown = wctdm_shutdown,
+#endif
.id_table = wctdm_pci_tbl,
};