[svn-commits] sruffell: linux/trunk r9881 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Apr 4 11:25:08 CDT 2011


Author: sruffell
Date: Mon Apr  4 11:25:03 2011
New Revision: 9881

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9881
Log:
wct4xxp: Add shutdown handler for kexec.

Makes the driver a little more kexec friendly when sharing an interrupt
line with another device.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Michael Spiceland <mspiceland at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=9881&r1=9880&r2=9881
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Mon Apr  4 11:25:03 2011
@@ -4971,10 +4971,21 @@
 	{ 0, }
 };
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12)
+static void _t4_shutdown(struct pci_dev *pdev)
+{
+	struct t4 *wc = pci_get_drvdata(pdev);
+	t4_hardware_stop(wc);
+}
+#endif
+
 static struct pci_driver t4_driver = {
 	.name = "wct4xxp",
 	.probe = t4_init_one,
 	.remove = __devexit_p(t4_remove_one),
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12)
+	.shutdown = _t4_shutdown,
+#endif
 	.id_table = t4_pci_tbl,
 };
 




More information about the svn-commits mailing list