projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ede7d
)
Made it not bother to try and build this module on a 2.4 kernel.
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 28 Jan 2006 17:39:17 +0000
(17:39 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 28 Jan 2006 17:39:17 +0000
(17:39 +0000)
comedi/drivers/dt9812.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/dt9812.c
b/comedi/drivers/dt9812.c
index b130d6274ee03f469ce8197928adc72634805ff6..6acd7cd0f13b498e38587862f17b3ee62edb04c2 100644
(file)
--- a/
comedi/drivers/dt9812.c
+++ b/
comedi/drivers/dt9812.c
@@
-43,6
+43,9
@@
for my needs.
* says P1).
*/
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/errno.h>
@@
-941,3
+944,5
@@
module_exit (usb_dt9812_exit);
MODULE_AUTHOR("Anders Blomdell <anders.blomdell@control.lth.se>");
MODULE_DESCRIPTION("Comedi DT9812 driver");
MODULE_LICENSE("GPL");
+
+#endif // LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)