From 9756b55de5749b495481be4b30b87d6162b14f62 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Jul 2011 19:13:12 +0200 Subject: Fix few compilation issues with recent kernels --- driver/base.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver/base.c') diff --git a/driver/base.c b/driver/base.c index 7f4ccad..2b998e3 100644 --- a/driver/base.c +++ b/driver/base.c @@ -489,7 +489,11 @@ static void __devexit pcidriver_remove(struct pci_dev *pdev) */ static struct file_operations pcidriver_fops = { .owner = THIS_MODULE, +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) .ioctl = pcidriver_ioctl, +#else + .unlocked_ioctl = pcidriver_ioctl, +#endif .mmap = pcidriver_mmap, .open = pcidriver_open, .release = pcidriver_release, -- cgit v1.2.3