projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01cc176
)
device_create is not fully functional in linux 2.6.18.
author
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 15 Aug 2008 20:35:58 +0000
(20:35 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 15 Aug 2008 20:35:58 +0000
(20:35 +0000)
include/linux/device.h
patch
|
blob
|
history
diff --git
a/include/linux/device.h
b/include/linux/device.h
index 7ed524df2a5754363eacce14610b3f2e7ab4abcd..2b7a17f23c8b3f02a159f3635630706e96019506 100644
(file)
--- a/
include/linux/device.h
+++ b/
include/linux/device.h
@@
-103,8
+103,9
@@
static inline void device_destroy(struct class *cs, dev_t devt)
class_device_destroy(cs, devt)
#else
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+/* device_create does not work for NULL parent with 2.6.18, not sure
+exactly which kernel version it was fixed in. */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
#define COMEDI_DEVICE_CREATE(cs, parent, devt, drvdata, fmt...) \
(struct device *)class_device_create( \