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/wcb4xxp/base.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'drivers/dahdi/wcb4xxp') diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c index 2255add..c3896c5 100644 --- a/drivers/dahdi/wcb4xxp/base.c +++ b/drivers/dahdi/wcb4xxp/base.c @@ -1198,7 +1198,6 @@ static int b4xxp_find_sync(struct b4xxp *b4) return src; } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)) static ssize_t b4_timing_master_show(struct device *dev, struct device_attribute *attr, char *buf) @@ -1226,13 +1225,6 @@ static void remove_sysfs_files(struct b4xxp *b4) &dev_attr_timing_master); } -#else - -static inline void create_sysfs_files(struct b4xxp *b4) { return; } -static inline void remove_sysfs_files(struct b4xxp *b4) { return; } - -#endif /* LINUX_KERNEL > 2.6.18 */ - /* * allocates memory and pretty-prints a given S/T state engine state to it. * calling routine is responsible for freeing the pointer returned! -- cgit v1.2.3