aboutsummaryrefslogtreecommitdiffstats
path: root/package/ltq-tapi/patches/linux-37.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2011-03-29 05:17:10 +0000
committerJohn Crispin <blogic@openwrt.org>2011-03-29 05:17:10 +0000
commit2e6d399f2816e92ccbd6b87ba926734496b14339 (patch)
treee732df068be61fba7941819cdc72521deea162a7 /package/ltq-tapi/patches/linux-37.patch
parent7252c35ef16c7fa30d82a9da66009dbcb82583a4 (diff)
downloadmaster-187ad058-2e6d399f2816e92ccbd6b87ba926734496b14339.tar.gz
master-187ad058-2e6d399f2816e92ccbd6b87ba926734496b14339.tar.bz2
master-187ad058-2e6d399f2816e92ccbd6b87ba926734496b14339.zip
[lantiq]
* several updates to the voice packages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26351 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ltq-tapi/patches/linux-37.patch')
-rw-r--r--package/ltq-tapi/patches/linux-37.patch65
1 files changed, 0 insertions, 65 deletions
diff --git a/package/ltq-tapi/patches/linux-37.patch b/package/ltq-tapi/patches/linux-37.patch
deleted file mode 100644
index 5d5ff7ed3e..0000000000
--- a/package/ltq-tapi/patches/linux-37.patch
+++ /dev/null
@@ -1,65 +0,0 @@
---- a/src/drv_tapi_linux.c
-+++ b/src/drv_tapi_linux.c
-@@ -128,8 +128,13 @@
- size_t count, loff_t * ppos);
- static ssize_t ifx_tapi_read(struct file * filp, char *buf,
- size_t length, loff_t * ppos);
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36))
- static int ifx_tapi_ioctl(struct inode *inode, struct file *filp,
- unsigned int nCmd, unsigned long nArgument);
-+#else
-+static int ifx_tapi_ioctl(struct file *filp,
-+ unsigned int nCmd, unsigned long nArgument);
-+#endif
- static unsigned int ifx_tapi_poll (struct file *filp, poll_table *table);
-
- #ifdef CONFIG_PROC_FS
-@@ -213,7 +218,11 @@
- IFX_char_t *pRegDrvName = IFX_NULL;
- IFX_int32_t ret = 0;
-
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36))
- if (tapi_fops.ioctl == IFX_NULL)
-+#else
-+ if (tapi_fops.unlocked_ioctl == IFX_NULL)
-+#endif
- {
- #ifdef MODULE
- tapi_fops.owner = THIS_MODULE;
-@@ -221,7 +230,11 @@
- tapi_fops.read = ifx_tapi_read;
- tapi_fops.write = ifx_tapi_write;
- tapi_fops.poll = ifx_tapi_poll;
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36))
- tapi_fops.ioctl = ifx_tapi_ioctl;
-+#else
-+ tapi_fops.unlocked_ioctl = ifx_tapi_ioctl;
-+#endif
- tapi_fops.open = ifx_tapi_open;
- tapi_fops.release = ifx_tapi_release;
- }
-@@ -876,8 +889,13 @@
- - 0 and positive values - success
- - negative value - ioctl failed
- */
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36))
- static int ifx_tapi_ioctl(struct inode *inode, struct file *filp,
- unsigned int nCmd, unsigned long nArg)
-+#else
-+static int ifx_tapi_ioctl(struct file *filp,
-+ unsigned int nCmd, unsigned long nArg)
-+#endif
- {
- TAPI_FD_PRIV_DATA_t *pTapiPriv;
- IFX_TAPI_ioctlCtx_t ctx;
---- a/src/lib/lib_fifo/lib_fifo.c
-+++ b/src/lib/lib_fifo/lib_fifo.c
-@@ -41,7 +41,7 @@
- #ifdef LINUX
- /* if linux/slab.h is not available, use the precessor linux/malloc.h */
- #include <linux/slab.h>
--#elif VXWORKS
-+#elif defined(VXWORKS)
- #include <sys_drv_debug.h>
- #endif /* LINUX */
-