From: Frank Mori Hess Date: Sun, 15 Jan 2006 20:35:23 +0000 (+0000) Subject: Fix compile against 2.6.15 kernel by using CLASS_DEVICE_CREATE X-Git-Tag: r0_7_71~74 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a28f728513aeba191b7b725c36142683eb907304;p=comedi.git Fix compile against 2.6.15 kernel by using CLASS_DEVICE_CREATE compatibility macro. --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 272f7f3e..f8921116 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -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();