Fix compile against 2.6.15 kernel by using CLASS_DEVICE_CREATE
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 15 Jan 2006 20:35:23 +0000 (20:35 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 15 Jan 2006 20:35:23 +0000 (20:35 +0000)
compatibility macro.

comedi/comedi_fops.c

index 272f7f3e704313b3093b046730aa7d0851011b31..f892111620f17eb4837966402aae1f76e21d510f 100644 (file)
@@ -1740,7 +1740,7 @@ static int __init comedi_init(void)
                sprintf(name, "comedi%d", i);
                devfs_register(NULL, name, DEVFS_FL_DEFAULT,
                        COMEDI_MAJOR, i, 0666 | S_IFCHR, &comedi_fops, NULL);
-               class_device_create(comedi_class, MKDEV(COMEDI_MAJOR, i), NULL, "comedi%i", i);
+               CLASS_DEVICE_CREATE(comedi_class, 0, MKDEV(COMEDI_MAJOR, i), NULL, "comedi%i", i);
        }
 
        comedi_rt_init();