summaryrefslogtreecommitdiffstats
path: root/driver/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/ioctl.c')
-rw-r--r--driver/ioctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/ioctl.c b/driver/ioctl.c
index 0059833..43a3cf7 100644
--- a/driver/ioctl.c
+++ b/driver/ioctl.c
@@ -414,7 +414,11 @@ static int ioctl_clear_ioq(pcidriver_privdata_t *privdata, unsigned long arg)
* @returns -EFAULT when an invalid memory pointer is passed
*
*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
int pcidriver_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg)
+#else
+long pcidriver_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+#endif
{
pcidriver_privdata_t *privdata = filp->private_data;