diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-08-20 21:22:12 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-08-20 21:22:12 +0000 |
commit | e3ccd80d0fe4bfc7439d1f2fb6f73c7b86ab13e8 (patch) | |
tree | fd098a72026fa37c2c43dee7f70a9d92ed1ca3b4 /drivers/dahdi/dahdi-base.c | |
parent | c97ed60af4545c6d4e6099eea18fd5c429b4126c (diff) |
improve compatibility with 2.6.26 and 2.6.27 kernels
(closes issue #13253)
Reported by: raiden
Patches:
zap-dev.patch uploaded by smurfix on issue #13277 (license 547)
zap-sema.patch uploaded by smurfix on issue #13277 (license 547)
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4801 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 1cdf3df..c563d55 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -152,7 +152,10 @@ EXPORT_SYMBOL(dahdi_set_hpec_ioctl); static struct proc_dir_entry *proc_entries[DAHDI_MAX_SPANS]; #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) +#define CLASS_DEV_CREATE(class, devt, device, name) \ + device_create(class, device, devt, NULL, "%s", name) +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) #define CLASS_DEV_CREATE(class, devt, device, name) \ device_create(class, device, devt, name) #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) |