[PATCH] Driver Core: fix up all callers of class_device_create()
[linux-block.git] / drivers / block / paride / pt.c
index d8d35233cf495df4fd84fbdecd9cb65710137993..686c955734523f37d8e18bb1294bcd8a0d45031b 100644 (file)
@@ -971,7 +971,7 @@ static int __init pt_init(void)
        devfs_mk_dir("pt");
        for (unit = 0; unit < PT_UNITS; unit++)
                if (pt[unit].present) {
-                       class_device_create(pt_class, MKDEV(major, unit),
+                       class_device_create(pt_class, NULL, MKDEV(major, unit),
                                        NULL, "pt%d", unit);
                        err = devfs_mk_cdev(MKDEV(major, unit),
                                      S_IFCHR | S_IRUSR | S_IWUSR,
@@ -980,7 +980,7 @@ static int __init pt_init(void)
                                class_device_destroy(pt_class, MKDEV(major, unit));
                                goto out_class;
                        }
-                       class_device_create(pt_class, MKDEV(major, unit + 128),
+                       class_device_create(pt_class, NULL, MKDEV(major, unit + 128),
                                        NULL, "pt%dn", unit);
                        err = devfs_mk_cdev(MKDEV(major, unit + 128),
                                      S_IFCHR | S_IRUSR | S_IWUSR,