projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c45535a
)
Fix compile against 2.6.15 kernel by using CLASS_DEVICE_CREATE
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 15 Jan 2006 20:35:23 +0000
(20:35 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 15 Jan 2006 20:35:23 +0000
(20:35 +0000)
compatibility macro.
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index 272f7f3e704313b3093b046730aa7d0851011b31..f892111620f17eb4837966402aae1f76e21d510f 100644
(file)
--- 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();