]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/mem.c
device create: char: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / char / mem.c
index b6772d657547a4e25f275f2a1bd4bc29ac3188e4..6431f6921a67acde3c214f784904c4ebd0f62678 100644 (file)
@@ -327,7 +327,10 @@ static void mmap_mem_close(struct vm_area_struct *vma)
 
 static struct vm_operations_struct mmap_mem_ops = {
        .open  = mmap_mem_open,
-       .close = mmap_mem_close
+       .close = mmap_mem_close,
+#ifdef CONFIG_HAVE_IOREMAP_PROT
+       .access = generic_access_phys
+#endif
 };
 
 static int mmap_mem(struct file * file, struct vm_area_struct * vma)
@@ -990,7 +993,7 @@ static int __init chr_dev_init(void)
        mem_class = class_create(THIS_MODULE, "mem");
        for (i = 0; i < ARRAY_SIZE(devlist); i++)
                device_create(mem_class, NULL,
-                             MKDEV(MEM_MAJOR, devlist[i].minor),
+                             MKDEV(MEM_MAJOR, devlist[i].minor), NULL,
                              devlist[i].name);
 
        return 0;