Changeset 13684


Ignore:
Timestamp:
2008-12-18T20:38:32+01:00 (9 years ago)
Author:
zandbelt
Message:

make zaptel compile with kernels >2.6.25

Location:
packages/libs/zaptel-1.4.x
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/zaptel-1.4.x/Makefile

    r13511 r13684  
    2828  SUBMENU:=Other modules 
    2929  $(call Package/zaptel14/Default) 
    30   DEPENDS:=@!LINUX_2_6_27 
    3130  TITLE+= (kernel module) 
    3231  VERSION:=$(LINUX_VERSION)-$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) 
  • packages/libs/zaptel-1.4.x/patches/305-class_device_removed.patch

    r12797 r13684  
    1 --- zaptel-1.4.x/kernel/zaptel-base.c.orig      2008-08-18 12:55:48.000000000 +0200 
    2 +++ zaptel-1.4.x/kernel/zaptel-base.c   2008-08-18 12:49:25.000000000 +0200 
    3 @@ -163,13 +163,29 @@ 
    4   
     1diff -Nru zaptel-1.4.9.2.org/kernel/zaptel-base.c zaptel-1.4.9.2/kernel/zaptel-base.c 
     2--- zaptel-1.4.9.2.org/kernel/zaptel-base.c     2008-02-28 20:00:47.000000000 +0100 
     3+++ zaptel-1.4.9.2/kernel/zaptel-base.c 2008-11-29 16:01:23.000000000 +0100 
     4@@ -163,12 +163,32 @@ 
    55 /* udev necessary data structures.  Yeah! */ 
    66 #ifdef CONFIG_ZAP_UDEV 
    7 - 
     7  
    88-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) 
    9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) 
     9+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) 
     10+#define CLASS_DEV_CREATE(class, devt, device, name) \ 
     11+      device_create(class, device, devt, NULL, "%s", name) 
     12+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) 
    1013+#define CLASS_DEV_CREATE(class, devt, device, name) \ 
    1114+        device_create(class, device, devt, name) 
     
    3437  
    3538 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) 
    36 @@ -178,8 +194,6 @@ 
     39@@ -177,8 +197,6 @@ 
    3740 static struct class_simple *zap_class = NULL; 
    3841 #define class_create class_simple_create 
     
    4346  
    4447 #endif /* CONFIG_ZAP_UDEV */ 
    45 @@ -5337,7 +5351,7 @@ 
     48@@ -4973,7 +4991,7 @@ 
    4649 #ifdef CONFIG_ZAP_UDEV 
    4750        for (x = 0; x < span->channels; x++) { 
     
    5255 #endif /* CONFIG_ZAP_UDEV */ 
    5356  
    54 @@ -7825,7 +7839,7 @@ 
     57@@ -7355,7 +7373,7 @@ 
    5558 int zt_unregister_chardev(struct zt_chardev *dev) 
    5659 { 
     
    6164  
    6265 #ifdef CONFIG_DEVFS_FS 
    63 @@ -7904,10 +7918,10 @@ 
     66@@ -7434,10 +7452,10 @@ 
    6467        devfs_unregister_chrdev(ZT_MAJOR, "zaptel"); 
    6568 #else 
Note: See TracChangeset for help on using the changeset viewer.