From 00a4ff1bd81d8f3774792539cb50712231d72bfe Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 13 Mar 2012 20:09:12 +0000 Subject: Remove support for kernels < 2.6.18 This patch removes support for kernel versions < 2.6.18, as those are not actively supported in any major Linux distribution (except RHEL4, which is in the "extended" support level of the product life cycle). This removes much of the more #ifdef-rich parts of the code. Signed-off-by: Oron Peled Acked-by: Acked-by: Shaun Ruffell Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10472 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcte12xp/base.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'drivers/dahdi/wcte12xp/base.c') diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index e7f3dca..a2f341f 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -2697,13 +2697,7 @@ static int __devinit te12xp_init_one(struct pci_dev *pdev, const struct pci_devi spin_lock_init(&wc->reglock); INIT_LIST_HEAD(&wc->active_cmds); INIT_LIST_HEAD(&wc->pending_cmds); -# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) - wc->timer.function = te12xp_timer; - wc->timer.data = (unsigned long)wc; - init_timer(&wc->timer); -# else setup_timer(&wc->timer, te12xp_timer, (unsigned long)wc); -# endif # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) INIT_WORK(&wc->timer_work, timer_work_func, wc); @@ -2876,13 +2870,11 @@ static DEFINE_PCI_DEVICE_TABLE(te12xp_pci_tbl) = { { 0 } }; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12) static void te12xp_shutdown(struct pci_dev *pdev) { struct t1 *wc = pci_get_drvdata(pdev); voicebus_quiesce(&wc->vb); } -#endif static int te12xp_suspend(struct pci_dev *pdev, pm_message_t state) { @@ -2895,9 +2887,7 @@ static struct pci_driver te12xp_driver = { .name = "wcte12xp", .probe = te12xp_init_one, .remove = __devexit_p(te12xp_remove_one), -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12) .shutdown = te12xp_shutdown, -#endif .suspend = te12xp_suspend, .id_table = te12xp_pci_tbl, }; -- cgit v1.2.3