summaryrefslogtreecommitdiffstats
path: root/drivers/usb/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/audio.c')
-rw-r--r--drivers/usb/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/audio.c b/drivers/usb/audio.c
index c8f187280..354c1d6cf 100644
--- a/drivers/usb/audio.c
+++ b/drivers/usb/audio.c
@@ -2159,10 +2159,10 @@ static int usb_audio_mmap(struct file *file, struct vm_area_struct *vma)
db = &as->usbin.dma;
} else
return -EINVAL;
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,22)
+
if (vma->vm_pgoff != 0)
return -EINVAL;
-#endif
+
return dmabuf_mmap(db, vma->vm_start, vma->vm_end - vma->vm_start, vma->vm_page_prot);
}