[PATCH] chardev: GPIO for SCx200 & PC-8736x: dispatch via vtable
[firefly-linux-kernel-4.4.55.git] / drivers / char / mmtimer.c
index c92378121b4ca054fdce184963b14290a7c6bb55..d65b3109318a347f402f51db1d9bcf6c9107bf4f 100644 (file)
@@ -329,7 +329,6 @@ static int mmtimer_mmap(struct file *file, struct vm_area_struct *vma)
        if (PAGE_SIZE > (1 << 16))
                return -ENOSYS;
 
-       vma->vm_flags |= (VM_IO | VM_SHM | VM_LOCKED );
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
        mmtimer_addr = __pa(RTC_COUNTER_ADDR);
@@ -675,7 +674,7 @@ static int __init mmtimer_init(void)
        cnodeid_t node, maxn = -1;
 
        if (!ia64_platform_is("sn2"))
-               return -1;
+               return 0;
 
        /*
         * Sanity check the cycles/sec variable