Commit 90665d8d authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

build: support compiling on kernels < 3.8

parent 5ef88d72
......@@ -20,6 +20,8 @@
#undef DEBUG_DMA
#define create_proc_entry(name, mode, parent) proc_create(name, mode, parent, 0)
static struct tsi148_chip *chip;
static struct dma_pool *dma_desc_pool;
......
......@@ -26,6 +26,24 @@
#include "vme_dma.h"
#include "vmebus.h"
#ifndef __devinit
#define __devinit
#define __devinitdata
#define __devinitcost
#define __devexit
#define __devexitdata
#define __devexitconst
#endif
#ifndef __devexit_p
#ifdef MODULE
#define __devexit_p(x) x
#else
#define __devexit_p(x) NULL
#endif
#endif
/*
* Define the number of each resources that the Tsi148 supports.
*/
......
......@@ -1188,7 +1188,9 @@ long vme_window_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
*/
static int vme_remap_pfn_range(struct vm_area_struct *vma)
{
#ifndef VM_RESERVED
#define VM_RESERVED VM_DONTDUMP
#endif
vma->vm_flags |= VM_IO | VM_RESERVED | VM_DONTCOPY | VM_DONTEXPAND;
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment