]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/tipar.c
Pull align-sig-frame into release branch
[linux-2.6-omap-h63xx.git] / drivers / char / tipar.c
index 659335d80ee73703b6c56b7653e454a34332402a..41a94bc79f67f4536f8ce164f9f3a3bae263da4e 100644 (file)
@@ -396,7 +396,7 @@ static struct file_operations tipar_fops = {
 static int __init
 tipar_setup(char *str)
 {
-       int ints[2];
+       int ints[3];
 
        str = get_options(str, ARRAY_SIZE(ints), ints);
 
@@ -436,7 +436,7 @@ tipar_register(int nr, struct parport *port)
                goto out;
        }
 
-       class_device_create(tipar_class, MKDEV(TIPAR_MAJOR,
+       class_device_create(tipar_class, NULL, MKDEV(TIPAR_MAJOR,
                        TIPAR_MINOR + nr), NULL, "par%d", nr);
        /* Use devfs, tree: /dev/ticables/par/[0..2] */
        err = devfs_mk_cdev(MKDEV(TIPAR_MAJOR, TIPAR_MINOR + nr),