From a28f728513aeba191b7b725c36142683eb907304 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 15 Jan 2006 20:35:23 +0000 Subject: [PATCH] Fix compile against 2.6.15 kernel by using CLASS_DEVICE_CREATE compatibility macro. --- comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.26.2