]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/raw.c
[PATCH] add sem_is_read/write_locked()
[linux-2.6-omap-h63xx.git] / drivers / char / raw.c
index f13e5de02207b8dff569c58f80d6ab85988671ee..30e4cbe16bb0036dbe7ac9c04cb68e56c736913b 100644 (file)
@@ -128,7 +128,7 @@ raw_ioctl(struct inode *inode, struct file *filp,
 static void bind_device(struct raw_config_request *rq)
 {
        class_device_destroy(raw_class, MKDEV(RAW_MAJOR, rq->raw_minor));
-       class_device_create(raw_class, MKDEV(RAW_MAJOR, rq->raw_minor),
+       class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, rq->raw_minor),
                                      NULL, "raw%d", rq->raw_minor);
 }
 
@@ -307,7 +307,7 @@ static int __init raw_init(void)
                unregister_chrdev_region(dev, MAX_RAW_MINORS);
                goto error;
        }
-       class_device_create(raw_class, MKDEV(RAW_MAJOR, 0), NULL, "rawctl");
+       class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl");
 
        devfs_mk_cdev(MKDEV(RAW_MAJOR, 0),
                      S_IFCHR | S_IRUGO | S_IWUGO,