]> err.no Git - linux-2.6/blobdiff - drivers/sbus/char/vfc_dev.c
[PATCH] devfs: Remove devfs_mk_dir() function from the kernel tree
[linux-2.6] / drivers / sbus / char / vfc_dev.c
index dfdd6be551f3ecca3a878b159514ccf96c0c5dce..31232ce72071eacb702ca605467d13adae7ccbfc 100644 (file)
@@ -623,7 +623,7 @@ static int vfc_mmap(struct file *file, struct vm_area_struct *vma)
                map_size = sizeof(struct vfc_regs);
 
        vma->vm_flags |=
-               (VM_SHM | VM_LOCKED | VM_IO | VM_MAYREAD | VM_MAYWRITE | VM_MAYSHARE);
+               (VM_MAYREAD | VM_MAYWRITE | VM_MAYSHARE);
        map_offset = (unsigned int) (long)dev->phys_regs;
        ret = io_remap_pfn_range(vma, vma->vm_start,
                                  MK_IOSPACE_PFN(dev->which_io,
@@ -677,7 +677,6 @@ static int vfc_probe(void)
                kfree(vfc_dev_lst);
                return -EIO;
        }
-       devfs_mk_dir("vfc");
        instance = 0;
        for_all_sbusdev(sdev, sbus) {
                if (strcmp(sdev->prom_name, "vfc") == 0) {