[svn-commits] sruffell: branch linux/sruffell/wctdm24xxp-cmdlist r9841 - /linux/team/sruffe...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 16 16:39:18 CDT 2011


Author: sruffell
Date: Wed Mar 16 16:39:14 2011
New Revision: 9841

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9841
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>

Modified:
    linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/wct4xxp/base.c

Modified: linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/wct4xxp/base.c?view=diff&rev=9841&r1=9840&r2=9841
==============================================================================
--- linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/team/sruffell/wctdm24xxp-cmdlist/drivers/dahdi/wct4xxp/base.c Wed Mar 16 16:39:14 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